Commit 93bc0136 authored by analog-nico's avatar analog-nico
Browse files

Removed check since httpResponse always is an object

parent 9bdc22c7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ function ownCallback(err, httpResponse, body) {
            options: self._rp_options,
            response: httpResponse
        });
    } else if (self._rp_options.simple && _.isObject(httpResponse) && !(/^2/.test('' + httpResponse.statusCode))) {
    } else if (self._rp_options.simple && !(/^2/.test('' + httpResponse.statusCode))) {
        self._rp_reject({
            error: body,
            options: self._rp_options,