Skip to content

Commit ef02b67

Browse files
authored
Merge pull request #27 from tfrommen/patch-1
Remove superfluous isset() check before unset().
2 parents c2d5478 + 4f5b687 commit ef02b67

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)