lint plus simplification

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
Jim Ehrismann committed 2022-04-25 19:58:07 -04:00
1 parent 8dee604fd0
commit fbb1ca5928
1 file changed
+1 -3
+1 -3
View File
@@ -17,9 +17,7 @@ export async function execHelm(args: string[], options?: BaseEncodingOptions & E
try {
const opts = { ...options };
if (!opts.env) {
opts.env = process.env
}
opts.env ??= process.env;
if (!opts.env.HTTPS_PROXY && UserStore.getInstance().httpsProxy) {
opts.env.HTTPS_PROXY = UserStore.getInstance().httpsProxy;