Skip to content

Commit d358907

Browse files
authored
Merge pull request #50 from wp-cli/48-remove-array-diff
Remove unnecessary `array_diff()`; skipping within loop is clearer
2 parents 25a580a + e5a7fc8 commit d358907

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Search_Replace_Command.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,6 @@ public function __invoke( $args, $assoc_args ) {
276276
// Get table names based on leftover $args or supplied $assoc_args
277277
$tables = \WP_CLI\Utils\wp_get_table_names( $args, $assoc_args );
278278

279-
// Removes from $tables tables provided by skip-tables argument
280-
$tables = array_diff( $tables, $this->skip_tables );
281-
282279
foreach ( $tables as $table ) {
283280

284281
if ( in_array( $table, $this->skip_tables ) ) {

0 commit comments

Comments
 (0)