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

@@ -28,7 +28,7 @@ export default class DatabaseRoleEdit extends Component {
@tracked loading = false;
get warningMessages() {
let warnings = {};
const warnings = {};
if (this.args.model.canUpdateDb === false) {
warnings.database = `You dont have permissions to update this database connection, so this role cannot be created.`;
}
@@ -84,11 +84,11 @@ export default class DatabaseRoleEdit extends Component {
this.loading = true;
const mode = this.args.mode;
let roleSecret = this.args.model;
let secretId = roleSecret.name;
const roleSecret = this.args.model;
const secretId = roleSecret.name;
if (mode === 'create') {
roleSecret.set('id', secretId);
let path = roleSecret.type === 'static' ? 'static-roles' : 'roles';
const path = roleSecret.type === 'static' ? 'static-roles' : 'roles';
roleSecret.set('path', path);
}
roleSecret
@@ -111,7 +111,7 @@ export default class DatabaseRoleEdit extends Component {
@action
rotateRoleCred(id) {
const backend = this.args.model?.backend;
let adapter = this.store.adapterFor('database/credential');
const adapter = this.store.adapterFor('database/credential');
adapter
.rotateRoleCredentials(backend, id)
.then(() => {