Skip to content

Commit

Permalink
Update source/tools/dav.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
susnux authored Aug 2, 2024
1 parent 67cca3f commit 2eeb213
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/tools/dav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 2eeb213

Please sign in to comment.