Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
menduz committed Aug 20, 2021
1 parent e8f3143 commit 6b4097e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export function patchRollouts(
if (typeof percentage != "number" || isNaN(percentage) || percentage < 0 || percentage > 100) {
throw new Error(`patchRollouts: invalid percentage ${percentage}`)
}
if (typeof timestamp != "number" || isNaN(timestamp) || timestamp < 0) {
if (typeof timestamp != "number" || isNaN(timestamp) || timestamp <= 0) {
throw new Error(`patchRollouts: invalid timestamp ${timestamp}`)
}

Expand Down

0 comments on commit 6b4097e

Please sign in to comment.