From: Tim Düsterhus Date: Fri, 30 Oct 2020 08:32:33 +0000 (+0100) Subject: Make Ui/User/List.ts eslint clean X-Git-Tag: 5.4.0_Alpha_1~681 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6fc582e8b73350d55831b0181ea79a7afbadd4fc;p=GitHub%2FWoltLab%2FWCF.git Make Ui/User/List.ts eslint clean --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/List.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/List.js index 2c77cfd307..4abecb74af 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/List.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/List.js @@ -47,7 +47,7 @@ define(["require", "exports", "tslib", "../../Ajax", "../../Core", "../../Dom/Ut this.pageNo = +pageNo; } if (this.pageCount !== 0 && (this.pageNo < 1 || this.pageNo > this.pageCount)) { - throw new RangeError("pageNo must be between 1 and " + this.pageCount + " (" + this.pageNo + " given)."); + throw new RangeError(`pageNo must be between 1 and ${this.pageCount} (${this.pageNo} given).`); } if (this.cache.has(this.pageNo)) { const dialog = Dialog_1.default.open(this, this.cache.get(this.pageNo)); diff --git a/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/User/List.ts b/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/User/List.ts index 92a4c7cd97..3113ffb405 100644 --- a/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/User/List.ts +++ b/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/User/List.ts @@ -43,7 +43,7 @@ class UiUserList implements AjaxCallbackObject, DialogCallbackObject { /** * Opens the user list. */ - open() { + open(): void { this.pageNo = 1; this.showPage(); } @@ -57,7 +57,7 @@ class UiUserList implements AjaxCallbackObject, DialogCallbackObject { } if (this.pageCount !== 0 && (this.pageNo < 1 || this.pageNo > this.pageCount)) { - throw new RangeError("pageNo must be between 1 and " + this.pageCount + " (" + this.pageNo + " given)."); + throw new RangeError(`pageNo must be between 1 and ${this.pageCount} (${this.pageNo} given).`); } if (this.cache.has(this.pageNo)) {