Remove unnecessary brackets

This commit is contained in:
okvdai
2023-05-03 17:42:03 +02:00
parent 54d26f568b
commit e51386252d
+1 -1
View File
@@ -41,7 +41,7 @@ void function pulseInit()
void functionref(HttpRequestResponse) onSuccess = void function(HttpRequestResponse response) void functionref(HttpRequestResponse) onSuccess = void function(HttpRequestResponse response)
{ {
table JSONDecoded = DecodeJSON(response.body) table JSONDecoded = DecodeJSON(response.body)
if ((JSONDecoded["Major"] == GetConVarString("MajorVersion")) && (JSONDecoded["Minor"] == GetConVarString("MinorVersion")) && (JSONDecoded["Patch"] == GetConVarString("PatchVersion"))) { if (JSONDecoded["Major"] == GetConVarString("MajorVersion") && JSONDecoded["Minor"] == GetConVarString("MinorVersion") && JSONDecoded["Patch"] == GetConVarString("PatchVersion")) {
print(prefix + "v1.2.1 has been loaded and is up to date.") print(prefix + "v1.2.1 has been loaded and is up to date.")
} else { } else {
print(prefix + "v1.2.1 has been loaded. Recommend updating to latest version: v" + JSONDecoded["Major"] + "." + JSONDecoded["Minor"] + "." + JSONDecoded["Patch"] + ".") print(prefix + "v1.2.1 has been loaded. Recommend updating to latest version: v" + JSONDecoded["Major"] + "." + JSONDecoded["Minor"] + "." + JSONDecoded["Patch"] + ".")