Skip to content

Commit b5f0f7a

Browse files
committed
fix: fixed ms issue
1 parent 50b8121 commit b5f0f7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,9 @@ class Bree {
324324
if (errors.length > 0) throw combineErrors(errors);
325325
}
326326

327-
getHumanToMs(value) {
328-
value = humanInterval(value);
329-
if (Number.isNaN(value)) value = ms(value);
327+
getHumanToMs(_value) {
328+
const value = humanInterval(_value);
329+
if (Number.isNaN(value)) return ms(_value);
330330
return value;
331331
}
332332

0 commit comments

Comments
 (0)