Skip to content

Commit 2de7fb1

Browse files
committed
Code Quality fix.
1 parent b420c0f commit 2de7fb1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

plugins/hwp-previews/src/Preview/Template_Resolver.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,7 @@ public function is_allowed(): bool {
6464
$post_status = $this->post->post_status;
6565
$post_statuses = $this->post_statuses;
6666

67-
if ( ! in_array( $post_status, $post_statuses, true ) ) {
68-
return false;
69-
}
70-
71-
return true;
67+
return in_array( $post_status, $post_statuses, true );
7268
}
7369

7470
/**

0 commit comments

Comments
 (0)