Fix missing ; and == and some missing vars

This commit is contained in:
rejas
2019-06-04 10:19:25 +02:00
parent c1559dd8c8
commit 69aafd7d6a
6 changed files with 9 additions and 9 deletions

View File

@@ -52,12 +52,12 @@ function checkConfigFile() {
if (err) { throw err; }
v.JSHINT(data); // Parser by jshint
if (v.JSHINT.errors.length == 0) {
if (v.JSHINT.errors.length === 0) {
console.log("Your configuration file doesn't contain syntax errors :)");
return true;
} else {
errors = v.JSHINT.data().errors;
for (idx in errors) {
for (var idx in errors) {
error = errors[idx];
console.log("Line", error.line, "col", error.character, error.reason);
}