Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 6, 2020
1 parent 9ed0a39 commit cdd85b0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions source/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,11 @@ const create = (defaults: InstanceDefaults): Got => {
throw new RequestError(initHookError.message, initHookError, normalizedOptions);
}

// A bug.
// eslint-disable-next-line @typescript-eslint/return-await
return iterateHandlers(normalizedOptions);
} catch (error) {
if (options?.isStream) {
throw error;
} else {
// A bug.
// eslint-disable-next-line @typescript-eslint/return-await
return createRejection(error, defaults.options.hooks.beforeError, options?.hooks?.beforeError);
}
}
Expand Down

0 comments on commit cdd85b0

Please sign in to comment.