From: Alexander Ebert Date: Thu, 9 Sep 2021 12:35:17 +0000 (+0200) Subject: Removed unnecessary type assertions X-Git-Tag: 5.5.0_Alpha_1~449 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3a4e9856e45c9bcf8df648a9b834f05b5bd8b585;p=GitHub%2FWoltLab%2FWCF.git Removed unnecessary type assertions --- diff --git a/ts/WoltLabSuite/Core/Acp/Ui/User/Action/Handler/Ban/Dialog.ts b/ts/WoltLabSuite/Core/Acp/Ui/User/Action/Handler/Ban/Dialog.ts index c5c7ffe748..80f6bab152 100644 --- a/ts/WoltLabSuite/Core/Acp/Ui/User/Action/Handler/Ban/Dialog.ts +++ b/ts/WoltLabSuite/Core/Acp/Ui/User/Action/Handler/Ban/Dialog.ts @@ -77,10 +77,10 @@ export class BanDialog { options: { onSetup: (content: HTMLElement): void => { this.dialogContent = content; - this.submitElement = content.querySelector(".formSubmitButton")! as HTMLElement; - this.reasonInput = content.querySelector("#userBanReason")! as HTMLInputElement; - this.neverExpiresCheckbox = content.querySelector("#userBanNeverExpires")! as HTMLInputElement; - this.userBanExpiresSettingsElement = content.querySelector("#userBanExpiresSettings")! as HTMLElement; + this.submitElement = content.querySelector(".formSubmitButton")!; + this.reasonInput = content.querySelector("#userBanReason") as HTMLInputElement; + this.neverExpiresCheckbox = content.querySelector("#userBanNeverExpires") as HTMLInputElement; + this.userBanExpiresSettingsElement = content.querySelector("#userBanExpiresSettings")!; this.submitElement.addEventListener("click", (event) => { event.preventDefault();