File tree Expand file tree Collapse file tree 4 files changed +2
-10
lines changed Expand file tree Collapse file tree 4 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ class LockBox<L extends Lockable = Lockable> implements Lockable {
235
235
signal . addEventListener (
236
236
'abort' ,
237
237
( ) => {
238
- waitPs . reverse ( ) ;
238
+ void waitPs . reverse ( ) ;
239
239
for ( const waitP of waitPs ) {
240
240
waitP . cancel ( signal . reason ) ;
241
241
}
Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ class Monitor<RWLock extends RWLockReader | RWLockWriter> implements Lockable {
310
310
signal . addEventListener (
311
311
'abort' ,
312
312
( ) => {
313
- waitPs . reverse ( ) ;
313
+ void waitPs . reverse ( ) ;
314
314
for ( const waitP of waitPs ) {
315
315
waitP . cancel ( signal . reason ) ;
316
316
}
Original file line number Diff line number Diff line change @@ -218,8 +218,6 @@ class RWLockReader implements Lockable {
218
218
} else {
219
219
if ( typeof params [ 0 ] === 'string' ) {
220
220
type = params . shift ( ) as 'read' | 'write' ;
221
- } else if ( typeof params [ 0 ] == null ) {
222
- params . shift ( ) ;
223
221
}
224
222
}
225
223
type = type ! ?? 'write' ;
@@ -268,8 +266,6 @@ class RWLockReader implements Lockable {
268
266
} else {
269
267
if ( typeof params [ 0 ] === 'string' ) {
270
268
type = params . shift ( ) as 'read' | 'write' ;
271
- } else if ( typeof params [ 0 ] == null ) {
272
- params . shift ( ) ;
273
269
}
274
270
}
275
271
type = type ! ?? 'write' ;
Original file line number Diff line number Diff line change @@ -219,8 +219,6 @@ class RWLockWriter implements Lockable {
219
219
} else {
220
220
if ( typeof params [ 0 ] === 'string' ) {
221
221
type = params . shift ( ) as 'read' | 'write' ;
222
- } else if ( typeof params [ 0 ] == null ) {
223
- params . shift ( ) ;
224
222
}
225
223
}
226
224
type = type ! ?? 'write' ;
@@ -269,8 +267,6 @@ class RWLockWriter implements Lockable {
269
267
} else {
270
268
if ( typeof params [ 0 ] === 'string' ) {
271
269
type = params . shift ( ) as 'read' | 'write' ;
272
- } else if ( typeof params [ 0 ] == null ) {
273
- params . shift ( ) ;
274
270
}
275
271
}
276
272
type = type ! ?? 'write' ;
You can’t perform that action at this time.
0 commit comments