From 8f0c8ffb14e51b1243437a4556ba896efa76b662 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 30 Oct 2020 10:47:30 +0100 Subject: [PATCH] Remove useless type assertion in Language.ts --- wcfsetup/install/files/ts/WoltLabSuite/Core/Language.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/ts/WoltLabSuite/Core/Language.ts b/wcfsetup/install/files/ts/WoltLabSuite/Core/Language.ts index 3c59a8134f..a4459f5d96 100644 --- a/wcfsetup/install/files/ts/WoltLabSuite/Core/Language.ts +++ b/wcfsetup/install/files/ts/WoltLabSuite/Core/Language.ts @@ -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; -- 2.20.1