From 614b018d722a7f0047710fbc006cbc6d2578c19b Mon Sep 17 00:00:00 2001 From: Tom Mortensen Date: Wed, 29 Jan 2025 09:34:40 -0800 Subject: [PATCH] chore: implement coderabbitai recommendations --- emhttp/plugins/dynamix/ShareEdit.page | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emhttp/plugins/dynamix/ShareEdit.page b/emhttp/plugins/dynamix/ShareEdit.page index 1b81d6b46..53c206b31 100644 --- a/emhttp/plugins/dynamix/ShareEdit.page +++ b/emhttp/plugins/dynamix/ShareEdit.page @@ -125,7 +125,7 @@ function presetSpace($val) { } else if (!empty($fsSize)) { $fsSize[''] = $fsSize[$pool]; } else { - $fsSize[''] = "0"; + $fsSize[''] = 0; } /* Get the cache pool size */ @@ -265,7 +265,7 @@ function fsFree() { $fsFree[''] = min(array_filter($fsFree)); } else { /* The minimum free space cannot be determined from the array or pools so it is set to zero */ - $fsFree[''] = "0"; + $fsFree[''] = 0; } /* Return the free filesystem space as a JSON encoded string */