lint compliance

pull/1/head
ansuz 7 years ago
parent 98c2b0c802
commit 1e9856647e

@ -1,3 +1,4 @@
/* globals Buffer */
var Https = require('https'); var Https = require('https');
var Config = require("./config.js"); var Config = require("./config.js");
var Package = require("./package.json"); var Package = require("./package.json");
@ -18,7 +19,7 @@ var options = {
} }
}; };
var req = Https.request(options, function (response) { Https.request(options, function (response) {
if (!('' + response.statusCode).match(/^2\d\d$/)) { if (!('' + response.statusCode).match(/^2\d\d$/)) {
throw new Error('SERVER ERROR ' + response.statusCode); throw new Error('SERVER ERROR ' + response.statusCode);
} }

Loading…
Cancel
Save