Skip to content

Commit f066246

Browse files
Trottdanielleadams
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 33f3391 commit f066246

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/internal/process/task_queues.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function runNextTicks() {
6868
functionprocessTicksAndRejections(){
6969
lettock;
7070
do{
71-
while(tock=queue.shift()){
71+
while((tock=queue.shift())!==null){
7272
constasyncId=tock[async_id_symbol];
7373
emitBefore(asyncId,tock[trigger_async_id_symbol],tock);
7474

0 commit comments

Comments
 (0)