Skip to content

Commit 93e0bfb

Browse files
committed
refactor: rename variable for clarity in beforeSend hook payload handling
1 parent 7e087f7 commit 93e0bfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/javascript/src/catcher.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,8 @@ export default class Catcher {
438438
* Filter sensitive data
439439
*/
440440
if (typeof this.beforeSend === 'function') {
441-
const eventClone = structuredClone(payload);
442-
const result = this.beforeSend(eventClone);
441+
const eventPayloadClone = structuredClone(payload);
442+
const result = this.beforeSend(eventPayloadClone);
443443

444444
/**
445445
* false → drop event

0 commit comments

Comments
 (0)