From cdd85b0e68b0577062646c8e6f8d1c4927962a52 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Wed, 6 May 2020 17:38:24 +0800 Subject: [PATCH] Fix linting --- source/create.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source/create.ts b/source/create.ts index 1eeb81427..7c31ae0d7 100644 --- a/source/create.ts +++ b/source/create.ts @@ -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); } }