Skip to content

Commit

Permalink
Fix a faulty logic, fixes tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
bordoni committed Sep 21, 2023
1 parent 3cbf5b4 commit a277ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function run_all_checks( $args ) {
$readme_md = preg_grep( '!(^|/)readme.md$!i', $top_level_files );
if ( ! empty( $readme_txt ) ) {
$args['readme'] = new Readme_Parser( end( $readme_txt ) );
} elseif ( file_exists( $readme_md ) ) {
} elseif ( ! empty( $readme_md ) ) {
$args['readme'] = new Readme_Parser( end( $readme_md ) );
}
}
Expand Down

0 comments on commit a277ff6

Please sign in to comment.