Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
ylc395 and sindresorhus authored Jan 6, 2025
1 parent e69b67d commit ddec04b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export default class Emittery {
}
}

on(eventNames, listener, options) {
on(eventNames, listener, {signal} = {}) {

Check failure on line 276 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 18

'signal' is assigned a value but never used.

Check failure on line 276 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 16

'signal' is assigned a value but never used.
assertListener(listener);

eventNames = Array.isArray(eventNames) ? eventNames : [eventNames];
Expand Down

0 comments on commit ddec04b

Please sign in to comment.