aboutsummaryrefslogtreecommitdiff
path: root/src/modules/version.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2023-03-05 22:43:09 +0100
committer0neGal <mail@0negal.com>2023-03-05 22:43:09 +0100
commit7ef891c54e0e9b06efc09e0d5e328d900a31e958 (patch)
tree00cc2d7fe48dd558421f17a95002ad5d59a6e3f8 /src/modules/version.js
parentcf61a55b1e490befa976d4240593b535777caf69 (diff)
downloadViper-7ef891c54e0e9b06efc09e0d5e328d900a31e958.tar.gz
Viper-7ef891c54e0e9b06efc09e0d5e328d900a31e958.zip
small cleanups and changes in comments
I've made some code return early instead of adding more nesting, on top of this I've added some more comments in some files, rephrased a few things, and so on...
Diffstat (limited to 'src/modules/version.js')
-rw-r--r--src/modules/version.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/version.js b/src/modules/version.js
index 73e7bed..652ffc5 100644
--- a/src/modules/version.js
+++ b/src/modules/version.js
@@ -6,8 +6,8 @@ const settings = require("./settings");
let version = {};
-// Returns the current Northstar version
-// If not installed it'll return "unknown"
+// returns the current Northstar version
+// if not installed it'll return "unknown"
version.northstar = () => {
// if NorthstarLauncher.exe doesn't exist, always return "unknown"
if (! fs.existsSync(path.join(settings.gamepath, "NorthstarLauncher.exe"))) {
@@ -62,7 +62,7 @@ version.northstar = () => {
return baseVersion;
}
-// Returns the Titanfall 2 version from gameversion.txt file.
+// returns the Titanfall 2 version from gameversion.txt file.
// If it fails it simply returns "unknown"
//
// TODO: This file is present on Origin install, should check if it's