diff --git a/source/tools/dav.ts b/source/tools/dav.ts index d777507..e66343a 100644 --- a/source/tools/dav.ts +++ b/source/tools/dav.ts @@ -233,8 +233,7 @@ export function parseSearch(result: DAVResult, searchArbiter: string, isDetailed * @returns The value in bytes, or another indicator */ export function translateDiskSpace(value: string | number): DiskQuotaAvailable { - value = String(value); - switch (value) { + switch (String(value)) { case "-3": return "unlimited"; case "-2":