From 381605aca1fe80b95684fe5fbaaa8a89343f030d Mon Sep 17 00:00:00 2001 From: AnnAngela Date: Sun, 27 Mar 2022 20:55:28 +0800 Subject: [PATCH] Update update-version.js --- extra/update-version.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extra/update-version.js b/extra/update-version.js index 302863002..21fdf3227 100644 --- a/extra/update-version.js +++ b/extra/update-version.js @@ -10,14 +10,14 @@ const newVersion = process.env.VERSION; console.log("New Version: " + newVersion); -if (!newVersion) { +if (! newVersion) { console.error("invalid version"); process.exit(1); } const exists = tagExists(newVersion); -if (!exists) { +if (! exists) { // Process package.json pkg.version = newVersion; @@ -51,7 +51,7 @@ function tag(version) { } function tagExists(version) { - if (!version) { + if (! version) { throw new Error("invalid version"); } @@ -93,4 +93,4 @@ function safeDelete(dir) { recursive: true, }); } -} \ No newline at end of file +}