Skip to content

Commit 461512b

Browse files
fix: review comments
Signed-off-by: Shreyansh Shah <shreyansh_shah@yahoo.com>
1 parent effadea commit 461512b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

integrations/node-fetch/require.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function wrappedNodeFetch(fetch: any) {
3939
options: any
4040
) {
4141
if (process.env.KEPLOY_MODE == MODE_OFF) {
42-
createExecutionContext({ mode: MODE_OFF });
42+
return fetchFunc.apply(this, [url, options]);
4343
}
4444
if (
4545
getExecutionContext() == undefined ||
@@ -147,8 +147,6 @@ export function wrappedNodeFetch(fetch: any) {
147147
});
148148
resp = new fetch.Response(Readable.from(buf), rinit);
149149
break;
150-
case "off":
151-
return fetchFunc.apply(this, [url, options]);
152150
default:
153151
console.debug(
154152
"mode is not valid. Please set valid keploy mode using env variables"

0 commit comments

Comments
 (0)