Return here, else we'll call resolve too

This commit is contained in:
David Baker 2016-06-09 09:56:57 +01:00
parent 4fc311da90
commit e4ea00ca23

View file

@ -193,6 +193,7 @@ function getConfig() {
(err, response, body) => { (err, response, body) => {
if (err || response.status < 200 || response.status >= 300) { if (err || response.status < 200 || response.status >= 300) {
deferred.reject({err: err, response: response}); deferred.reject({err: err, response: response});
return;
} }
deferred.resolve(body); deferred.resolve(body);