lib/linguist/generated.rb in github-linguist-2.2.0 vs lib/linguist/generated.rb in github-linguist-2.2.1
- old
+ new
@@ -35,10 +35,11 @@
# Public: Get each line of data
#
# Returns an Array of lines
def lines
- @lines ||= data.split("\n", -1)
+ # TODO: data should be required to be a String, no nils
+ @lines ||= data ? data.split("\n", -1) : []
end
# Internal: Is the blob a generated file?
#
# Generated source code is supressed in diffs and is ignored by