Skip to content

Commit

Permalink
Fix linting errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
jffng committed Oct 26, 2021
1 parent 8a593ab commit 0c19d32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/post-comments/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function render_block_core_post_comments( $attributes, $content, $block ) {
'post_id' => $post_id,
'count' => true,
);
// Return early if there are no comments and comments are closed
if ( ! comments_open( $post_id ) && get_comments( $comment_args ) === 0) {
// Return early if there are no comments and comments are closed.
if ( ! comments_open( $post_id ) && get_comments( $comment_args ) === 0 ) {
return '';
}

Expand Down

0 comments on commit 0c19d32

Please sign in to comment.