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:
@@ -66,9 +66,9 @@ export default Component.extend(DEFAULTS, {
|
||||
hasProgress: gt('progress', 0),
|
||||
|
||||
actionSuccess(resp) {
|
||||
let { onUpdate, isComplete, onShamirSuccess, thresholdPath } = this;
|
||||
let threshold = get(resp, thresholdPath);
|
||||
let props = {
|
||||
const { onUpdate, isComplete, onShamirSuccess, thresholdPath } = this;
|
||||
const threshold = get(resp, thresholdPath);
|
||||
const props = {
|
||||
...resp,
|
||||
threshold,
|
||||
};
|
||||
@@ -100,7 +100,7 @@ export default Component.extend(DEFAULTS, {
|
||||
},
|
||||
|
||||
generateStep: computed('generateWithPGP', 'haveSavedPGPKey', 'pgp_key', function () {
|
||||
let { generateWithPGP, pgp_key, haveSavedPGPKey } = this;
|
||||
const { generateWithPGP, pgp_key, haveSavedPGPKey } = this;
|
||||
if (!generateWithPGP && !pgp_key) {
|
||||
return 'chooseMethod';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user