Skip to content

Commit

Permalink
fix: Fix constness of local id var
Browse files Browse the repository at this point in the history
Change-Id: I5aab7e52723ecb529fafd578b98351b30826bc65
  • Loading branch information
joeyparrish committed Nov 10, 2021
1 parent bb9acb9 commit 625fd3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trace-anything.js
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ class TraceAnything {
}

if (traced.__TraceAnythingId__ == null) {
let id = TraceAnything._nextGeneratedId.get(className) || 1;
const id = TraceAnything._nextGeneratedId.get(className) || 1;
TraceAnything._nextGeneratedId.set(className, id + 1);
traced.__TraceAnythingId__ = className + '_' + id;
}
Expand Down

0 comments on commit 625fd3d

Please sign in to comment.