From 798af254667f6488cc6a1bb554f423d88f2a7b22 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Wed, 10 May 2017 20:46:39 +0200 Subject: Don’t run checksum check if no commit range is given. --- Library/Homebrew/cask/lib/hbc/audit.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'Library') diff --git a/Library/Homebrew/cask/lib/hbc/audit.rb b/Library/Homebrew/cask/lib/hbc/audit.rb index 8b88394c4..6569da126 100644 --- a/Library/Homebrew/cask/lib/hbc/audit.rb +++ b/Library/Homebrew/cask/lib/hbc/audit.rb @@ -66,6 +66,7 @@ module Hbc tap = Tap.select { |t| t.cask_file?(@cask.sourcefile_path) }.first return if tap.nil? + return if commit_range.nil? previous_cask_contents = Git.last_revision_of_file(tap.path, @cask.sourcefile_path, before_commit: commit_range) return if previous_cask_contents.empty? -- cgit v1.2.3