Eslint prefer-const (#17864)

* adds prefer-const to eslint config and runs fixer

* reverts unintended change
This commit is contained in:
Jordan Reimer
2022-11-09 16:15:31 -07:00
committed by GitHub
parent 96d623d3fc
commit 483ef19946
464 changed files with 1701 additions and 1714 deletions

View File

@@ -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';
}