We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8927649 commit 6ea86bbCopy full SHA for 6ea86bb
packages/region-provider/src/fromSharedConfigFiles.ts
@@ -26,10 +26,13 @@ export function fromSharedConfigFiles(
26
init: SharedConfigInit = {}
27
): Provider<string> {
28
return () => {
29
- const {
+ let {
30
loadedConfig = loadSharedConfigFiles(init),
31
- profile = process.env[ENV_PROFILE] || DEFAULT_PROFILE
+ profile = process.env[ENV_PROFILE]
32
} = init;
33
+ if (!profile) {
34
+ profile = DEFAULT_PROFILE;
35
+ }
36
37
return loadedConfig.then(({configFile, credentialsFile}) => {
38
for (let file of [credentialsFile, configFile]) {
packages/region-provider/tsconfig.json
@@ -16,4 +16,4 @@
16
"rootDir": "./src",
17
"outDir": "./build"
18
}
19
-}
+}
0 commit comments