Skip to content

Commit 486ef1b

Browse files
update
1 parent 333eb3b commit 486ef1b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/load.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,8 @@ export async function loadFromAzureFrontDoor(endpoint: URL | string, options?: A
7474

7575
export async function loadFromAzureFrontDoor(
7676
endpoint: string | URL,
77-
appConfigOptions?: AzureAppConfigurationOptions
77+
appConfigOptions: AzureAppConfigurationOptions = {}
7878
): Promise<AzureAppConfiguration> {
79-
if (!appConfigOptions) {
80-
appConfigOptions = {};
81-
}
8279
if (appConfigOptions.replicaDiscoveryEnabled) {
8380
throw new ArgumentError("Replica discovery is not supported when loading from Azure Front Door.");
8481
}

0 commit comments

Comments
 (0)