Skip to content

Commit c460364

Browse files
Copilotswissspidy
andcommitted
Remove redundant type check per code review
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent f971957 commit c460364

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/WP_Export_Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ private static function get_terms_for_post( $post ) {
410410
if ( is_wp_error( $terms ) ) {
411411
return [];
412412
}
413-
return is_array( $terms ) ? $terms : [];
413+
return $terms;
414414
}
415415

416416
private static function get_meta_for_post( $post ) {

0 commit comments

Comments
 (0)