audit license: use present instead of blank

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Lionell Loh Jian An 2020-06-19 03:58:34 +08:00 committed by GitHub
parent b08d958064
commit a0b0c77ee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -349,9 +349,7 @@ module Homebrew
].freeze ].freeze
def audit_license def audit_license
return unless @new_formula if formula.license.present?
if !formula.license.blank?
if @spdx_ids.key?(formula.license) if @spdx_ids.key?(formula.license)
return unless @online return unless @online