mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +01:00
bow to new rubocop rule
This commit is contained in:
parent
cce91b79ec
commit
3909e2190a
@ -106,6 +106,7 @@ def fsf_approved_licenses
|
|||||||
licenses = {}
|
licenses = {}
|
||||||
object['licenses'].each_value do |meta|
|
object['licenses'].each_value do |meta|
|
||||||
next unless (meta.include? 'identifiers') && (meta['identifiers'].include? 'spdx') && (meta.include? 'tags') && (meta['tags'].include? 'libre')
|
next unless (meta.include? 'identifiers') && (meta['identifiers'].include? 'spdx') && (meta.include? 'tags') && (meta['tags'].include? 'libre')
|
||||||
|
|
||||||
meta['identifiers']['spdx'].each do |identifier|
|
meta['identifiers']['spdx'].each do |identifier|
|
||||||
licenses[identifier.downcase] = meta['name']
|
licenses[identifier.downcase] = meta['name']
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user