Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanrikulu committed Jan 21, 2025
1 parent c8b5a82 commit a304a37
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,12 @@ export default {
// analytics non-blocking
logAsync(tracker.trackEvent, request, 'request', {}, true);
logAsync(tracker.trackPageview, request, {}, true);
const router = routeHandler(env, (...args: any) =>
const router = routeHandler(env, (...args: any) =>
logAsync(tracker.trackEvent.bind(tracker, request), ...args)
);
return router
.handle(request)
.then((result: any) => {
logAsync(tracker.logResult, propsDecoder, request, result);
return result;
});
return router.handle(request).then((result: any) => {
logAsync(tracker.logResult, propsDecoder, request, result);
return result;
});
},
};

0 comments on commit a304a37

Please sign in to comment.