aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/audit.rb
diff options
context:
space:
mode:
authorMarkus Reiter2016-10-14 20:17:25 +0200
committerMarkus Reiter2016-10-23 14:32:04 +0200
commit2b7e6c1dcb2e1aa8416b9b26d1a3d77b68f65013 (patch)
tree14a5f61e46199f8b38458d66b4431d4b388fc015 /Library/Homebrew/cask/lib/hbc/audit.rb
parentae7b944238ca23aff13d29375e4c59b32ae9d436 (diff)
downloadbrew-2b7e6c1dcb2e1aa8416b9b26d1a3d77b68f65013.tar.bz2
Don’t use `%i` literal.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/audit.rb')
-rw-r--r--Library/Homebrew/cask/lib/hbc/audit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/audit.rb b/Library/Homebrew/cask/lib/hbc/audit.rb
index 0cb470370..ab2f1bce5 100644
--- a/Library/Homebrew/cask/lib/hbc/audit.rb
+++ b/Library/Homebrew/cask/lib/hbc/audit.rb
@@ -47,7 +47,7 @@ module Hbc
def check_required_stanzas
odebug "Auditing required stanzas"
- %i{version sha256 url homepage}.each do |sym|
+ [:version, :sha256, :url, :homepage].each do |sym|
add_error "a #{sym} stanza is required" unless cask.send(sym)
end
add_error "at least one name stanza is required" if cask.name.empty?