Skip to content

Commit 3f99ab1

Browse files
committed
chore: removed ?? operator
1 parent 8407f18 commit 3f99ab1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/azure/src/AzureBlobStorage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

packages/core/src/Storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

packages/core/src/StorageProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)