diff options
author | 0neGal <mail@0negal.com> | 2021-12-28 23:58:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-28 23:58:07 +0100 |
commit | 5ff7e1a8123e18951aff4643993a5b6296c409af (patch) | |
tree | 3ac79c3517065f3be5d4d09c3bf61aae242e5759 | |
parent | a23f5200a0330b24a1f77a63755367148cd0763f (diff) | |
download | Viper-5ff7e1a8123e18951aff4643993a5b6296c409af.tar.gz Viper-5ff7e1a8123e18951aff4643993a5b6296c409af.zip |
switched single quotes to double
-rw-r--r-- | src/utils.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/utils.js b/src/utils.js index 270b57a..3bad620 100644 --- a/src/utils.js +++ b/src/utils.js @@ -52,17 +52,17 @@ function saveSettings() { } function getInstalledVersion() { - const versionFilePath = path.join(settings.gamepath, 'ns_version.txt'); + const versionFilePath = path.join(settings.gamepath, "ns_version.txt"); if (fs.existsSync(versionFilePath)) { return fs.readFileSync(versionFilePath, "utf8"); } else { - fs.writeFileSync(versionFilePath, 'unknown'); - return 'unknown'; + fs.writeFileSync(versionFilePath, "unknown"); + return "unknown"; } } function updateInstalledVersion(newTag) { - fs.writeFileSync(path.join(settings.gamepath, 'ns_version.txt'), newTag); + fs.writeFileSync(path.join(settings.gamepath, "ns_version.txt"), newTag); } function update() { @@ -81,13 +81,13 @@ function update() { headers: {"User-Agent": "Viper"}, url: "https://api.github.com/repos/R2Northstar/Northstar/releases/latest", }, (error, response, body) => { - const tag = body['tag_name']; + const tag = body["tag_name"]; - console.log('current version:', version); - console.log('remote version:', tag); + console.log("current version:", version); + console.log("remote version:", tag); if (version === tag) { - console.log('Latest version is already installed, skipping update.'); + console.log("Latest version is already installed, skipping update."); return; } |