Skip to content

Commit 42ad8ae

Browse files
committed
refactor: simplify upload_max_filesize unit conversion with fallthrough switch
1 parent 144327d commit 42ad8ae

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

flight/net/Request.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -711,19 +711,14 @@ protected function getUploadMaxFileSize(): int {
711711
case 'p': // PentaByte
712712
case 'pb':
713713
$value *= 1024;
714-
return (int)$value;
715714
case 't': // Terabyte
716715
$value *= 1024;
717-
return (int)$value;
718716
case 'g': // Gigabyte
719717
$value *= 1024;
720-
return (int)$value;
721718
case 'm': // Megabyte
722719
$value *= 1024;
723-
return (int)$value;
724720
case 'k': // Kilobyte
725721
$value *= 1024;
726-
return (int)$value;
727722
case 'b': // Byte
728723
break;
729724
default:

0 commit comments

Comments
 (0)