File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export class AzureBlobStorage extends Storage<AzureBlobStorageOptions> {
2424 ) {
2525 super ( options )
2626
27- this . blobClient = ( provider ?? new AzureStorageAccount ( options ) ) . blobClient
27+ this . blobClient = ( provider || new AzureStorageAccount ( options ) ) . blobClient
2828 this . containerClient = this . blobClient . getContainerClient ( options . container )
2929 }
3030
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export abstract class Storage<O extends StorageOptions = any> {
2828
2929 constructor ( options : O ) {
3030 this . options = options
31- const directory = this . options . directory ?? ''
31+ const directory = this . options . directory || ''
3232 this . directoryNormalized =
3333 directory . charAt ( 0 ) === '/' ? directory . substring ( 1 ) : directory
3434 }
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export abstract class StorageProvider<T extends Storage = any> {
55 readonly manager : StorageManager
66
77 constructor ( manager ?: StorageManager ) {
8- this . manager = manager ?? getStorageManager ( )
8+ this . manager = manager || getStorageManager ( )
99 }
1010
1111 abstract getStorage ( name : string ) : Promise < T >
You can’t perform that action at this time.
0 commit comments