Fix all hints discovered by the new linter
`npm run eslintfix`
Change-Id: Ic07aede1b95e7dd53bbd05c062e2afcef5508c10
diff --git a/polygerrit-ui/app/elements/admin/gr-repo-access/gr-repo-access.ts b/polygerrit-ui/app/elements/admin/gr-repo-access/gr-repo-access.ts
index 411bb27..9c98545 100644
--- a/polygerrit-ui/app/elements/admin/gr-repo-access/gr-repo-access.ts
+++ b/polygerrit-ui/app/elements/admin/gr-repo-access/gr-repo-access.ts
@@ -445,7 +445,7 @@
}
this._recursivelyUpdateAddRemoveObj(
- (this._local as unknown) as PropertyTreeNode,
+ this._local as unknown as PropertyTreeNode,
addRemoveObj
);
@@ -470,9 +470,11 @@
this.set(['_local', newRef], section);
flush();
// Template already instantiated at this point
- (this.root!.querySelector(
- 'gr-access-section:last-of-type'
- ) as GrAccessSection).editReference();
+ (
+ this.root!.querySelector(
+ 'gr-access-section:last-of-type'
+ ) as GrAccessSection
+ ).editReference();
}
_getObjforSave(): ProjectAccessInput | undefined {
@@ -486,10 +488,10 @@
fireAlert(this, NOTHING_TO_SAVE);
return;
}
- const obj: ProjectAccessInput = ({
+ const obj: ProjectAccessInput = {
add: addRemoveObj.add,
remove: addRemoveObj.remove,
- } as unknown) as ProjectAccessInput;
+ } as unknown as ProjectAccessInput;
if (addRemoveObj.parent) {
obj.parent = addRemoveObj.parent;
}