1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 12:50:24 +01:00

Merge pull request #567 from wking/check-approval-license-ids

check-approval: Fix missing license_ids variable
This commit is contained in:
Mike Linksvayer 2018-01-03 12:00:49 -08:00 committed by GitHub
commit 3174c978cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,6 +52,7 @@ approvals.each do |approver, licenses|
rows << ["#{approver} approved", licenses.include?(license)]
end
license_ids = licenses.map { |l| l['id'] }
current = license_ids.include?(license)
rows << ['Current license', current]