From 3d5c4aaf5030daaed74b0a1b60d61869f1401ed4 Mon Sep 17 00:00:00 2001 From: Razvan Azamfirei Date: Tue, 18 Apr 2023 23:14:48 -0400 Subject: [PATCH] add check that hash is a string --- Library/Homebrew/dev-cmd/bump-cask-pr.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/bump-cask-pr.rb b/Library/Homebrew/dev-cmd/bump-cask-pr.rb index ee0851635b..6d9af45ed9 100644 --- a/Library/Homebrew/dev-cmd/bump-cask-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-cask-pr.rb @@ -136,7 +136,7 @@ module Homebrew opoo "Ignoring specified `--sha256=` argument." if new_hash.is_a?(String) replacement_pairs << [/"#{old_hash}"/, ":no_check"] if old_hash != :no_check elsif old_hash == :no_check && new_hash != :no_check - replacement_pairs << [":no_check", "\"#{new_hash}\""] + replacement_pairs << [":no_check", "\"#{new_hash}\""] if new_hash.is_a?(String) elsif old_hash != :no_check if new_hash.nil? || cask.languages.present? if new_hash && cask.languages.present?