From 41dc0e36789f9fc3d977fcd879449ea7b8e8233f Mon Sep 17 00:00:00 2001 From: KnifeLemon Date: Fri, 17 Oct 2025 11:13:01 +0900 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- flight/net/Request.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/flight/net/Request.php b/flight/net/Request.php index 4341b08..134a83d 100644 --- a/flight/net/Request.php +++ b/flight/net/Request.php @@ -711,18 +711,19 @@ class Request case 'p': // PentaByte case 'pb': $value *= 1024; + return (int)$value; case 't': // Terabyte - case 'tb': $value *= 1024; + return (int)$value; case 'g': // Gigabyte - case 'gb': $value *= 1024; + return (int)$value; case 'm': // Megabyte - case 'mb': $value *= 1024; + return (int)$value; case 'k': // Kilobyte - case 'kb': $value *= 1024; + return (int)$value; case 'b': // Byte return (int)$value; default: