Fix unreachable code.

This commit is contained in:
Markus Reiter 2022-08-27 04:00:38 +02:00 committed by GitHub
parent 08642f137f
commit 5c2dd57794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -585,7 +585,7 @@ module Cask
next if result.success? next if result.success?
# Only fail if signature is wrong, not when no signature is present at all. # Only fail if signature is wrong, not when no signature is present at all.
next result.stderr.include?("not signed at all") next if result.stderr.include?("not signed at all")
add_warning "Signature verification failed: #{result.merged_output}" add_warning "Signature verification failed: #{result.merged_output}"
end end