File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed
Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -218,8 +218,6 @@ class RWLockReader implements Lockable {
218218 } else {
219219 if ( typeof params [ 0 ] === 'string' ) {
220220 type = params . shift ( ) as 'read' | 'write' ;
221- } else if ( typeof params [ 0 ] == null ) {
222- params . shift ( ) ;
223221 }
224222 }
225223 type = type ! ?? 'write' ;
@@ -268,8 +266,6 @@ class RWLockReader implements Lockable {
268266 } else {
269267 if ( typeof params [ 0 ] === 'string' ) {
270268 type = params . shift ( ) as 'read' | 'write' ;
271- } else if ( typeof params [ 0 ] == null ) {
272- params . shift ( ) ;
273269 }
274270 }
275271 type = type ! ?? 'write' ;
Original file line number Diff line number Diff line change @@ -219,8 +219,6 @@ class RWLockWriter implements Lockable {
219219 } else {
220220 if ( typeof params [ 0 ] === 'string' ) {
221221 type = params . shift ( ) as 'read' | 'write' ;
222- } else if ( typeof params [ 0 ] == null ) {
223- params . shift ( ) ;
224222 }
225223 }
226224 type = type ! ?? 'write' ;
@@ -269,8 +267,6 @@ class RWLockWriter implements Lockable {
269267 } else {
270268 if ( typeof params [ 0 ] === 'string' ) {
271269 type = params . shift ( ) as 'read' | 'write' ;
272- } else if ( typeof params [ 0 ] == null ) {
273- params . shift ( ) ;
274270 }
275271 }
276272 type = type ! ?? 'write' ;
You can’t perform that action at this time.
0 commit comments