Skip to content

Commit

Permalink
Fixing lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mbargiel committed May 10, 2022
1 parent 1b4ca6d commit ffd1b14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/adapters/http.js
Expand Up @@ -23,10 +23,10 @@ var supportedProtocols = [ 'http:', 'https:', 'file:' ];
function appendBeforeRedirect(options, beforeRedirect) {
var previousBeforeRedirect = options.beforeRedirect;
if (previousBeforeRedirect) {
options.beforeRedirect = function (redirectOptions) {
options.beforeRedirect = function chainBeforeRedirect(redirectOptions) {
previousBeforeRedirect(redirectOptions);
beforeRedirect(redirectOptions);
}
};
} else {
options.beforeRedirect = beforeRedirect;
}
Expand Down

0 comments on commit ffd1b14

Please sign in to comment.