style: restore Prettier formatting in renewal.ts (#298)

This commit is contained in:
sagit
2026-03-09 10:29:33 +08:00
committed by GitHub
parent de9ab51def
commit 42d6249af5
+5 -1
View File
@@ -14,6 +14,7 @@ const addMonths = (timestamp: number, months: number): number => {
const next = new Date(date);
next.setMonth(next.getMonth() + months);
return next.getTime();
};
@@ -72,7 +73,9 @@ export const getNodeRenewalSnapshot = (
nextDueTime = advanced;
}
const diffDays = Math.ceil((nextDueTime - Date.now()) / (1000 * 60 * 60 * 24));
const diffDays = Math.ceil(
(nextDueTime - Date.now()) / (1000 * 60 * 60 * 24),
);
if (diffDays <= 0) {
return {
@@ -110,5 +113,6 @@ export const formatNodeRenewalTime = (timestamp?: number): string => {
if (!timestamp || timestamp <= 0) {
return "未设置";
}
return new Date(timestamp).toLocaleString();
};