We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7e7a6d commit c9534b9Copy full SHA for c9534b9
packages/remix/src/utils/instrumentServer.ts
@@ -248,8 +248,6 @@ function makeWrappedDataFunction(
248
return origFn.call(this, args);
249
}
250
251
- let res: Response | AppData;
252
-
253
return startSpan(
254
{
255
op: `function.remix.${name}`,
@@ -290,7 +288,7 @@ function makeWrappedDataFunction(
290
288
291
289
span?.end();
292
293
- res = await origFn.call(this, args);
+ return origFn.call(this, args);
294
},
295
err => {
296
const isRemixV2 = FUTURE_FLAGS?.v2_errorBoundary || remixVersion === 2;
@@ -303,9 +301,6 @@ function makeWrappedDataFunction(
303
301
captureRemixServerException(err, name, args.request);
304
302
305
306
- () => {
307
- return res;
308
- },
309
);
310
311
0 commit comments