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 -1
View File
@@ -161,7 +161,7 @@ class BitburnerSaveObject {
return reject(new Error("Error importing file"));
}
const result = target.result;
if (typeof result !== "string" || result === null) {
if (typeof result !== "string") {
return reject(new Error("FileReader event was not type string"));
}
const contents = result;