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 cf1d3d1

Browse filesBrowse files
TrottBethGriggs
authored andcommitted
process: check for null instead of falsy in while loop
This prepares the code for the no-cond-assign ESLint rule. PR-URL: #41614 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent d83d55e commit cf1d3d1
Copy full SHA for cf1d3d1

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎lib/internal/process/task_queues.js‎

Copy file name to clipboardExpand all lines: lib/internal/process/task_queues.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function runNextTicks() {
6868
function processTicksAndRejections() {
6969
let tock;
7070
do {
71-
while (tock = queue.shift()) {
71+
while ((tock = queue.shift()) !== null) {
7272
const asyncId = tock[async_id_symbol];
7373
emitBefore(asyncId, tock[trigger_async_id_symbol], tock);
7474

0 commit comments

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