Skip to content

Commit 6ea86bb

Browse files
committed
Ensure default assignment polyfill is properly grouped
1 parent 8927649 commit 6ea86bb

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/region-provider/src/fromSharedConfigFiles.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ export function fromSharedConfigFiles(
2626
init: SharedConfigInit = {}
2727
): Provider<string> {
2828
return () => {
29-
const {
29+
let {
3030
loadedConfig = loadSharedConfigFiles(init),
31-
profile = process.env[ENV_PROFILE] || DEFAULT_PROFILE
31+
profile = process.env[ENV_PROFILE]
3232
} = init;
33+
if (!profile) {
34+
profile = DEFAULT_PROFILE;
35+
}
3336

3437
return loadedConfig.then(({configFile, credentialsFile}) => {
3538
for (let file of [credentialsFile, configFile]) {

packages/region-provider/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
"rootDir": "./src",
1717
"outDir": "./build"
1818
}
19-
}
19+
}

0 commit comments

Comments
 (0)