From 7ef891c54e0e9b06efc09e0d5e328d900a31e958 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Sun, 5 Mar 2023 22:43:09 +0100 Subject: 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... --- src/modules/version.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/version.js') 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 -- cgit v1.2.3