Skip to content

Commit 2365db5

Browse files
Apply suggestion
Co-authored-by: Zhiyuan Liang <[email protected]>
1 parent 5f67917 commit 2365db5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

articles/azure-app-configuration/quickstart-javascript.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,9 @@ const { AppConfigurationClient } = require("@azure/app-configuration");
299299
async function run() {
300300
console.log("Azure App Configuration - JavaScript example");
301301

302-
const credential = new DefaultAzureCredential();
303302
const client = new AppConfigurationClient(
304303
process.env.AZURE_APPCONFIG_ENDPOINT,
305-
credential
304+
new DefaultAzureCredential()
306305
);
307306

308307
const retrievedConfigSetting = await client.getConfigurationSetting({

0 commit comments

Comments
 (0)