Skip to content

Commit d13ac6e

Browse files
committed
refactor: remove extra splice arg
1 parent ccbe59d commit d13ac6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hookable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export class Hookable<
168168
return () => {
169169
// Splice will ensure that all fns are called once, and free all
170170
// unreg functions from memory.
171-
for (const unreg of removeFns.splice(0, removeFns.length)) {
171+
for (const unreg of removeFns.splice(0)) {
172172
unreg();
173173
}
174174
};

0 commit comments

Comments
 (0)