Simplified some booleans and if elses

This commit is contained in:
BB
2022-03-01 20:37:47 +01:00
parent 570b8caf78
commit 0eced1b9f2
10 changed files with 15 additions and 48 deletions
+1 -4
View File
@@ -60,8 +60,5 @@ export function isScriptErrorMessage(msg: string): boolean {
return false;
}
const splitMsg = msg.split("|DELIMITER|");
if (splitMsg.length != 4) {
return false;
}
return true;
return splitMsg.length == 4;
}