Skip to content

Commit 7a0c87c

Browse files
committed
fix: use strict equality check for return code validation
Changed the condition from `!$ret` to `$ret === 0` to properly validate the return code. This uses strict equality to explicitly check if the return code is 0 (success), making the intent clearer and avoiding potential issues with truthy/falsy value coercion.
1 parent 555018e commit 7a0c87c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

configure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ function xml_validate_jing()
10281028
if ( ! is_array( $out ) )
10291029
$out = [];
10301030

1031-
if ( !$ret )
1031+
if ( $ret === 0 )
10321032
{
10331033
echo "done.\n";
10341034
return;

0 commit comments

Comments
 (0)