Skip to content

Commit

Permalink
Protect parsing of data types from empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
lbetz committed Aug 28, 2024
1 parent 1e0258a commit 7ece8b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kafo/data_type_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def initialize(manifest)
line = line.force_encoding("UTF-8").strip
next if line.start_with?('#')

line = line.split(' #').first.strip
line = line.split(' #').first.strip unless line.empty?
if line =~ TYPE_DEFINITION
lines << type_line_without_newlines
type_line_without_newlines = line
Expand Down

0 comments on commit 7ece8b1

Please sign in to comment.