Skip to content

Commit

Permalink
Merge pull request #132 from Yoast/JRF/QA/remove-redundant-condition
Browse files Browse the repository at this point in the history
QA: remove a redundant condition block
  • Loading branch information
jrfnl authored Mar 22, 2021
2 parents cb5f386 + 018ee18 commit 055ca45
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/class-permissions-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,6 @@ public function has_trashed_rewrite_and_republish_copy( \WP_Post $post ) {

$copy = \get_post( $copy_id );

if ( $copy && $copy->post_status === 'trash' ) {
return true;
}

return false;
return ( $copy && $copy->post_status === 'trash' );
}
}

0 comments on commit 055ca45

Please sign in to comment.