Skip to content

Commit

Permalink
skip blank input lines
Browse files Browse the repository at this point in the history
  • Loading branch information
AlDanial committed Sep 25, 2015
1 parent 831ef45 commit 4578986
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sqlite_formatter
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ my @lines = ();

# ingest all lines
while (<>) {
next if /^\s*$/; # skip blank
next if /^--\s+/; # skip comments
chomp;
push @lines, $_;
}
Expand Down

0 comments on commit 4578986

Please sign in to comment.