From fb68de60461801367084d1f4283622ed97546171 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 5 Jan 2021 18:39:01 +0100 Subject: [PATCH] Mark second parameter of `FileUtil.formatFilesize()` as optional --- wcfsetup/install/files/ts/WoltLabSuite/Core/FileUtil.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/ts/WoltLabSuite/Core/FileUtil.ts b/wcfsetup/install/files/ts/WoltLabSuite/Core/FileUtil.ts index 10497437c5..d6825cfbae 100644 --- a/wcfsetup/install/files/ts/WoltLabSuite/Core/FileUtil.ts +++ b/wcfsetup/install/files/ts/WoltLabSuite/Core/FileUtil.ts @@ -132,7 +132,7 @@ const _mimeTypeExtensionMapping = new Map( /** * Formats the given filesize. */ -export function formatFilesize(byte: number, precision: number): string { +export function formatFilesize(byte: number, precision?: number): string { if (precision === undefined) { precision = 2; } -- 2.20.1