From 2eeb21303b2220a46b693e5eff29a224b8560d3c Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 2 Aug 2024 12:40:14 +0200 Subject: [PATCH] Update source/tools/dav.ts --- source/tools/dav.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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":