Skip to content

Commit

Permalink
feat: falsy instead of hard check
Browse files Browse the repository at this point in the history
  • Loading branch information
Tienisto committed Sep 22, 2024
1 parent 67c41c3 commit e71f42b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tempoId.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function generateRandomString(length, alphabet) {
}

function generateTime({ timeLength, time, startTime, padLeft = true, alphabet }) {
if (timeLength === 0) {
if (!timeLength) {
return '';
}

Expand Down

0 comments on commit e71f42b

Please sign in to comment.