Remove useless type assertion in Language.ts
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 30 Oct 2020 09:47:30 +0000 (10:47 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 30 Oct 2020 09:50:36 +0000 (10:50 +0100)
wcfsetup/install/files/ts/WoltLabSuite/Core/Language.ts

index 3c59a8134f68429fa3c168c1c280b3d4dd2ee573..a4459f5d965c97540dd3e224f929c4092ca42d0e 100644 (file)
@@ -63,7 +63,7 @@ export function get(key: string, parameters?: object): string {
   }
 
   if (value instanceof Template) {
-    value = (value as Template).fetch(parameters || {});
+    value = value.fetch(parameters || {});
   }
 
   return value as string;