Skip to content

Commit 4f5b687

Browse files
authored
Remove superfluous isset() check before unset().
1 parent c2d5478 commit 4f5b687

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/DB_Command.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,7 @@ public function export( $args, $assoc_args ) {
349349
$escaped_command = call_user_func_array( '\WP_CLI\Utils\esc_cmd', array_merge( array( $command ), $command_esc_args ) );
350350

351351
// Remove parameters not needed for SQL run.
352-
if ( isset( $assoc_args['porcelain'] ) ) {
353-
unset( $assoc_args['porcelain'] );
354-
}
352+
unset( $assoc_args['porcelain'] );
355353

356354
self::run( $escaped_command, $assoc_args );
357355

0 commit comments

Comments
 (0)