add comment

This commit is contained in:
xxyzz 2021-12-21 18:01:49 +08:00
parent fb415a15e9
commit 4cf996bcdf
No known key found for this signature in database
GPG Key ID: F796163E6DCFEE9D

View File

@ -153,7 +153,7 @@ module Homebrew
end
end
if new_hash.present? && cask.language.blank?
if new_hash.present? && cask.language.blank? # avoid repeated replacement for multilanguage cask
hash_regex = old_hash == :no_check ? ":no_check" : "[\"']#{Regexp.escape(old_hash.to_s)}[\"']"
replacement_pairs << [