Skip to content

Commit aee5fca

Browse files
fix lint
1 parent 48dca22 commit aee5fca

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/load.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ export async function loadCdn(
9090
appConfigOptions?: AzureAppConfigurationOptions
9191
): Promise<AzureAppConfiguration> {
9292
const startTimestamp = Date.now();
93-
let client: AppConfigurationClient;
94-
let options: AzureAppConfigurationOptions | undefined;
95-
9693
if (typeof endpoint === "string") {
9794
try {
9895
endpoint = new URL(endpoint);
@@ -107,11 +104,11 @@ export async function loadCdn(
107104
const emptyTokenCredential: TokenCredential = {
108105
getToken: async () => ({ token: "", expiresOnTimestamp: 0 })
109106
};
110-
options = appConfigOptions;
107+
const options = appConfigOptions;
111108
const clientOptions = getClientOptions(options);
112109
// App Configuration SDK will not distinguish between CDN and App Configuration endpoints. The SDK will just send request to the endpoint with the given token credential.
113110
// CDN should be the front door of App Configuration and forward the request to the App Configuration service.
114-
client = new AppConfigurationClient(endpoint.toString(), emptyTokenCredential, clientOptions);
111+
const client = new AppConfigurationClient(endpoint.toString(), emptyTokenCredential, clientOptions);
115112

116113
try {
117114
const appConfiguration = new AzureAppConfigurationImpl(client, options);

0 commit comments

Comments
 (0)