Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Jan 18, 2024
1 parent f025786 commit e6af4c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default function prettyMilliseconds(milliseconds, options = {}) {

const separator = options.colonNotation ? ':' : ' ';
if (typeof options.unitCount === 'number') {
result = result.slice(0, Math.max(options.unitCount, 1))
result = result.slice(0, Math.max(options.unitCount, 1));
}

return result.join(separator);
Expand Down

0 comments on commit e6af4c5

Please sign in to comment.