Skip to content

Commit a92e9cf

Browse files
author
Scott Baker
committed
Don't emit a warning if there is NO diff at all
1 parent 31cbe1e commit a92e9cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/header_clean/header_clean.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ sub strip_empty_first_line {
109109
my $foo = shift(); # Array passed in by reference
110110

111111
# If the first line is just whitespace remove it
112-
if ($foo->[0] =~ /^\s*$/) {
112+
if (defined($foo->[0]) && $foo->[0] =~ /^\s*$/) {
113113
shift($foo);
114114
}
115115
}

0 commit comments

Comments
 (0)