Skip to content

Commit 1ea56e2

Browse files
authored
docs(js): Use arrow function in some code samples (#4523)
Using `=>` to create a function in the sample code.
1 parent af75983 commit 1ea56e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platforms/node/guides/koa/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ const app = new Koa();
3131
Sentry.init({ dsn: "___PUBLIC_DSN___" });
3232

3333
app.on("error", (err, ctx) => {
34-
Sentry.withScope(function(scope) {
35-
scope.addEventProcessor(function(event) {
34+
Sentry.withScope((scope) => {
35+
scope.addEventProcessor((event) => {
3636
return Sentry.Handlers.parseRequest(event, ctx.request);
3737
});
3838
Sentry.captureException(err);

0 commit comments

Comments
 (0)