Revert "Revert "Fix some == with ===""

This reverts commit d9a4ee4f65.
This commit is contained in:
rejas 2019-06-05 08:48:22 +02:00
parent d9a4ee4f65
commit ea1715384e
5 changed files with 5 additions and 5 deletions

View file

@ -66,7 +66,7 @@ var App = function() {
var config = Object.assign(defaults, c);
callback(config);
} catch (e) {
if (e.code == "ENOENT") {
if (e.code === "ENOENT") {
console.error(Utils.colors.error("WARNING! Could not find config file. Please create one. Starting with default configuration."));
} else if (e instanceof ReferenceError || e instanceof SyntaxError) {
console.error(Utils.colors.error("WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: " + e.stack));