From a0b0c77ee8c6cf326535cc1a02eb5f53fccfda5c Mon Sep 17 00:00:00 2001 From: Lionell Loh Jian An Date: Fri, 19 Jun 2020 03:58:34 +0800 Subject: [PATCH] audit license: use present instead of blank Co-authored-by: Mike McQuaid --- Library/Homebrew/dev-cmd/audit.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 3bdaabb3f8..1e65db97aa 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -349,9 +349,7 @@ module Homebrew ].freeze def audit_license - return unless @new_formula - - if !formula.license.blank? + if formula.license.present? if @spdx_ids.key?(formula.license) return unless @online