Skip to content

Commit 3c9ea3c

Browse files
committed
fix: strict comparison on mixed
1 parent 3af6933 commit 3c9ea3c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Comment_Command.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,11 @@ public function delete( $args, $assoc_args ) {
498498
WP_CLI::error( "Failed deleting {$error_count} comments." );
499499
}
500500

501-
exit( 0 == $status ? 0 : 1 );
501+
if ( $status ) {
502+
exit( 0 );
503+
} else {
504+
exit( 1 );
505+
}
502506
}
503507

504508
private function call( $args, $status, $success, $failure ) {

0 commit comments

Comments
 (0)