Fix typos and some whitespaces

This commit is contained in:
rejas
2019-06-04 09:33:53 +02:00
parent caf56671dc
commit 99b4c43fd5
5 changed files with 13 additions and 16 deletions

View File

@@ -2,7 +2,7 @@
"use strict";
// Use seperate scope to prevent global scope pollution
// Use separate scope to prevent global scope pollution
(function () {
var config = {};
@@ -30,7 +30,7 @@
const request = lib.get(url, (response) => {
var configData = "";
// Gather incomming data
// Gather incoming data
response.on("data", function(chunk) {
configData += chunk;
});
@@ -44,7 +44,7 @@
reject(new Error(`Unable to read config from server (${url} (${error.message}`));
});
})
};
}
function fail(message, code = 1) {
if (message !== undefined && typeof message === "string") {