mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 02:57:59 +00:00
Eslint prefer-const (#17864)
* adds prefer-const to eslint config and runs fixer * reverts unintended change
This commit is contained in:
@@ -17,7 +17,7 @@ function writeKeysFile(unsealKeys, rootToken, filePath) {
|
||||
if (filePath === undefined) {
|
||||
filePath = path.join(process.cwd(), 'tests/helpers/vault-keys.js');
|
||||
}
|
||||
let keys = {};
|
||||
const keys = {};
|
||||
keys.unsealKeys = unsealKeys;
|
||||
keys.rootToken = rootToken;
|
||||
|
||||
@@ -42,7 +42,7 @@ function run(command, args = [], shareStd = true) {
|
||||
if (shareStd) {
|
||||
return execa(command, args, { cleanup: true, stdin: 'inherit', stdout: 'inherit', stderr: 'inherit' });
|
||||
}
|
||||
let p = execa(command, args, { cleanup: true });
|
||||
const p = execa(command, args, { cleanup: true });
|
||||
p.stdout.pipe(process.stdout);
|
||||
p.stderr.pipe(process.stderr);
|
||||
return p;
|
||||
|
||||
Reference in New Issue
Block a user