refactor Setting
This commit is contained in:
+2
-2
@@ -92,8 +92,8 @@ export default class Time {
|
||||
return { l, y, d, h, m, s, ms };
|
||||
}
|
||||
|
||||
public static duration(totalMs?: number, ms?: boolean): string {
|
||||
if (!totalMs) {
|
||||
public static duration(totalMs?: number | null | undefined, ms?: boolean): string {
|
||||
if (totalMs === null || totalMs === undefined) {
|
||||
return "";
|
||||
}
|
||||
let remain = Math.floor(totalMs);
|
||||
|
||||
Reference in New Issue
Block a user