Skip to content

Commit abb69b7

Browse files
committed
remove check for null
1 parent 2bfa5d4 commit abb69b7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

resources/lib/UnityHTTPD.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,6 @@ public static function getPostData(string $key): mixed
239239
if (!isset($_POST)) {
240240
self::badRequest('$_POST is unset');
241241
}
242-
if ($_POST === null) {
243-
self::badRequest('$_POST is null');
244-
}
245242
if (!array_key_exists($key, $_POST)) {
246243
self::badRequest("\$_POST has no array key '$key'");
247244
}

0 commit comments

Comments
 (0)