Skip to content

Commit

Permalink
Simplify blank line check
Browse files Browse the repository at this point in the history
  • Loading branch information
sluicing committed Jan 6, 2024
1 parent 5460a3d commit cb75015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ sub check {
chomp $line;

if($next_line_should_be_blank) {
if(! (($line eq "") || ($line =~ m/^[\s]*$/))) {
if(! ($line =~ m/^[\s]*$/)) {
error($f, $line, $l, "The line after a '#' header should be blank.");
}

Expand Down

0 comments on commit cb75015

Please sign in to comment.