Use strict equality checking

Remove usage of == and != in favour of === and !==.
This commit is contained in:
Hornwitser committed 2020-10-23 19:05:12 +02:00
1 parent ee81fbb7f6
commit a84f2d5eb6
13 files changed
+29 -21

No files matched your search

+2 -2
View File
@@ -55,7 +55,7 @@ async function loadJsonAsMap(filePath) {
return new Map(Object.entries(parsed));
} catch (err) {
if (err.code == "ENOENT") {
if (err.code === "ENOENT") {
// File does not exist, return empty map
return new Map();
@@ -117,7 +117,7 @@ async function loadJsonArrayAsMap(filePath) {
return map;
} catch (err) {
if (err.code == "ENOENT") {
if (err.code === "ENOENT") {
// File does not exist, return empty map
return new Map();