Skip to content

Commit 77564da

Browse files
committed
Make cleanup smaller.
1 parent 1ab7c0f commit 77564da

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/sdk/browser/src/goals/GoalTracker.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ export default class GoalTracker {
100100
* Close the tracker which stops listening to any events.
101101
*/
102102
close() {
103-
if (this.cleanup) {
104-
this.cleanup();
105-
}
103+
this.cleanup?.();
106104
}
107105
}

0 commit comments

Comments
 (0)