commit | 3f27968ee7962d0121c701054bedce19429e3c35 | [log] [tgz] |
---|---|---|
author | Ben Rohlfs <brohlfs@google.com> | Fri Feb 25 12:07:27 2022 +0100 |
committer | Ben Rohlfs <brohlfs@google.com> | Fri Feb 25 13:11:55 2022 +0100 |
tree | 57e3e2023232b0fe9bec001fd0e4cb1317a10bf8 | |
parent | 69f8cd3fa49b6224f84e23a218571b6853ef34ab [diff] [blame] |
Add eslint rule @typescript-eslint/no-unnecessary-type-assertion And fix all files accordingly. Release-Notes: skip Change-Id: I5a151b1d5399aabfe1550f5323e96a452f47cc7f
diff --git a/polygerrit-ui/app/elements/settings/gr-change-table-editor/gr-change-table-editor.ts b/polygerrit-ui/app/elements/settings/gr-change-table-editor/gr-change-table-editor.ts index bfe396c..eff22d1 100644 --- a/polygerrit-ui/app/elements/settings/gr-change-table-editor/gr-change-table-editor.ts +++ b/polygerrit-ui/app/elements/settings/gr-change-table-editor/gr-change-table-editor.ts
@@ -81,12 +81,10 @@ */ _getDisplayedColumns() { if (this.root === null) return []; - return ( - Array.from( - this.root.querySelectorAll( - '.checkboxContainer input:not([name=number])' - ) - ) as HTMLInputElement[] + return Array.from( + this.root.querySelectorAll<HTMLInputElement>( + '.checkboxContainer input:not([name=number])' + ) ) .filter(checkbox => checkbox.checked) .map(checkbox => checkbox.name);