Skip to content

Commit 91227c5

Browse files
chore: unnecessary parentheses.
1 parent 416420b commit 91227c5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ext/json/json.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,7 @@ PHP_FUNCTION(json_validate)
303303
Z_PARAM_LONG(options)
304304
ZEND_PARSE_PARAMETERS_END();
305305

306-
307-
if ((options != 0) && (options != PHP_JSON_INVALID_UTF8_IGNORE)) {
306+
if (options != 0 && options != PHP_JSON_INVALID_UTF8_IGNORE) {
308307
zend_argument_value_error(3, "must be a valid flag (allowed flags: JSON_INVALID_UTF8_IGNORE)");
309308
RETURN_THROWS();
310309
}
@@ -315,7 +314,7 @@ PHP_FUNCTION(json_validate)
315314
}
316315

317316
JSON_G(error_code) = PHP_JSON_ERROR_NONE;
318-
317+
319318
if (depth <= 0) {
320319
zend_argument_value_error(2, "must be greater than 0");
321320
RETURN_THROWS();

0 commit comments

Comments
 (0)