Skip to content

Commit 9129890

Browse files
committed
fix codacy complaint
Signed-off-by: Jeromy Cannon <[email protected]>
1 parent f801a0c commit 9129890

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/commands/node.mjs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,13 +313,12 @@ export class NodeCommand extends BaseCommand {
313313
}
314314

315315
async initializeSetup (config, configManager, k8) {
316-
const cacheDir = validatePath(config.cacheDir)
317316
// compute other config parameters
318317
config.releasePrefix = Templates.prepareReleasePrefix(config.releaseTag)
319-
config.buildZipFile = `${cacheDir}/${config.releasePrefix}/build-${config.releaseTag}.zip`
320-
config.keysDir = path.join(cacheDir, 'keys')
318+
config.buildZipFile = `${config.cacheDir}/${config.releasePrefix}/build-${config.releaseTag}.zip`
319+
config.keysDir = path.join(validatePath(config.cacheDir), 'keys')
321320
config.stagingDir = Templates.renderStagingDir(configManager, flags)
322-
config.stagingKeysDir = path.join(config.stagingDir, 'keys')
321+
config.stagingKeysDir = path.join(validatePath(config.stagingDir), 'keys')
323322

324323
if (!await k8.hasNamespace(config.namespace)) {
325324
throw new FullstackTestingError(`namespace ${config.namespace} does not exist`)

0 commit comments

Comments
 (0)