From: Tim Düsterhus Date: Fri, 30 Oct 2020 09:47:30 +0000 (+0100) Subject: Remove useless type assertion in Language.ts X-Git-Tag: 5.4.0_Alpha_1~674 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8f0c8ffb14e51b1243437a4556ba896efa76b662;p=GitHub%2FWoltLab%2FWCF.git Remove useless type assertion in Language.ts --- 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;