Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e2181e0

Browse filesBrowse files
committed
lib: fix eslint early return
The #45243 upgraded eslint and apparently, when you specific a `@returns` early returns aren't considered valid. This PR fixes this lint issue. PR-URL: #45409 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruy Adorno <ruyadorno@google.com> Reviewed-By: Beth Griggs <bethanyngriggs@gmail.com>
1 parent e8075fd commit e2181e0
Copy full SHA for e2181e0

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Open diff view settings
Collapse file

‎lib/events.js‎

Copy file name to clipboardExpand all lines: lib/events.js
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,8 +1091,6 @@ function on(emitter, event, options) {
10911091
{ once: true });
10921092
}
10931093

1094-
return iterator;
1095-
10961094
function abortListener() {
10971095
errorHandler(new AbortError(undefined, { cause: signal?.reason }));
10981096
}
@@ -1120,4 +1118,5 @@ function on(emitter, event, options) {
11201118

11211119
iterator.return();
11221120
}
1121+
return iterator;
11231122
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.