From a277ff69a190a9b2ff548fa56645cc1630f32e13 Mon Sep 17 00:00:00 2001 From: Gustavo Bordoni Date: Thu, 21 Sep 2023 17:37:25 -0400 Subject: [PATCH] Fix a faulty logic, fixes tests. --- plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.php b/plugin.php index a7d0227ab..1a6921dbd 100644 --- a/plugin.php +++ b/plugin.php @@ -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 ) ); } }