Skip to content

Commit 0bb38c1

Browse files
Remove dead code (#693)
1 parent c76726e commit 0bb38c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HttpClient/Util/JsonArray.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static function decode(string $json): array
3939
throw new RuntimeException(\sprintf('json_decode error: %s', \json_last_error_msg()));
4040
}
4141

42-
if (null === $data || !\is_array($data)) {
42+
if (!\is_array($data)) {
4343
throw new RuntimeException(\sprintf('json_decode error: Expected JSON of type array, %s given.', \get_debug_type($data)));
4444
}
4545

0 commit comments

Comments
 (0)