Make Ui/User/List.ts eslint clean
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 30 Oct 2020 08:32:33 +0000 (09:32 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 30 Oct 2020 09:50:35 +0000 (10:50 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/List.js
wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/User/List.ts

index 2c77cfd307e7dc5e5f32d0a317f29458ca9ae4f7..4abecb74af000a7804ddcc60377e1ee6015efac0 100644 (file)
@@ -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));
index 92a4c7cd97cbe8c9b78a57e9d2ecbbf8d6ba30f0..3113ffb40558bdee23565211c1e9c74d88f9b22c 100644 (file)
@@ -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)) {