lib/licensed/dependency.rb in licensed-2.14.2 vs lib/licensed/dependency.rb in licensed-2.14.3
- old
+ new
@@ -140,9 +140,10 @@
# Returns a generated license content source and text for the dependency's
# license if it exists and is not "other"
def generated_license_contents
return unless license
return if license.key == "other"
+ return if license.text.nil?
# strip copyright clauses and any extra newlines
# many package managers don't provide enough information to
# autogenerate a copyright clause
text = license.text.lines