Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
Closes #109
  • Loading branch information
sindresorhus committed Sep 1, 2023
1 parent f0b3c2b commit b2d7fd6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/emitonce.js
Expand Up @@ -4,7 +4,7 @@ import Emittery from '../index.js';
const myEmitter = new Emittery();

// Register listener for only the one event
(async () => {
(async () => { // eslint-disable-line unicorn/prefer-top-level-await
console.log('An event occurred (#%d).', await myEmitter.once('event'));
})();

Expand Down
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -480,7 +480,7 @@ export default class Emittery {
continue;
}

if (typeof eventName !== 'undefined') {
if (eventName !== undefined) {
assertEventName(eventName);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -58,7 +58,7 @@
"nyc": "^15.1.0",
"p-event": "^5.0.1",
"tsd": "^0.23.0",
"xo": "^0.52.3"
"xo": "^0.55.0"
},
"nyc": {
"reporter": [
Expand Down

0 comments on commit b2d7fd6

Please sign in to comment.