Skip to content

Commit

Permalink
fix: review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Shreyansh Shah <shreyansh_shah@yahoo.com>
  • Loading branch information
shreyanshshah27 committed Mar 9, 2023
1 parent effadea commit 461512b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions integrations/node-fetch/require.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function wrappedNodeFetch(fetch: any) {
options: any
) {
if (process.env.KEPLOY_MODE == MODE_OFF) {
createExecutionContext({ mode: MODE_OFF });
return fetchFunc.apply(this, [url, options]);
}
if (
getExecutionContext() == undefined ||
Expand Down Expand Up @@ -147,8 +147,6 @@ export function wrappedNodeFetch(fetch: any) {
});
resp = new fetch.Response(Readable.from(buf), rinit);
break;
case "off":
return fetchFunc.apply(this, [url, options]);
default:
console.debug(
"mode is not valid. Please set valid keploy mode using env variables"
Expand Down

0 comments on commit 461512b

Please sign in to comment.