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 cfbe34a commit 5d458feCopy full SHA for 5d458fe
packages/remix/src/utils/instrumentServer.ts
@@ -246,8 +246,6 @@ function makeWrappedDataFunction(
246
return origFn.call(this, args);
247
}
248
249
- let res: Response | AppData;
250
-
251
return startSpan(
252
{
253
op: `function.remix.${name}`,
@@ -288,7 +286,7 @@ function makeWrappedDataFunction(
288
286
289
287
span?.end();
290
291
- res = await origFn.call(this, args);
+ return origFn.call(this, args);
292
},
293
err => {
294
const isRemixV2 = FUTURE_FLAGS?.v2_errorBoundary || remixVersion === 2;
@@ -301,9 +299,6 @@ function makeWrappedDataFunction(
301
299
captureRemixServerException(err, name, args.request);
302
300
303
304
- () => {
305
- return res;
306
- },
307
);
308
309
0 commit comments