Skip to content

Commit

Permalink
Boolean values are strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Smith committed Jan 13, 2022
1 parent 0780de1 commit a5cf096
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 @@ -48,7 +48,7 @@ async function run() {

// No version was found that matched the prefix.
if (!fetchedVersion) {
if (dieOnMissing) {
if (dieOnMissing === "true") {
throw new Error(`Failed to locate version matching prefix ${prefix}`);
} else {
// Otherwise, return minor version 0 (will be incremented to 1).
Expand Down

0 comments on commit a5cf096

Please sign in to comment.