From 2776f08fa095b95dafbc9af5f80188f3f063e001 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller <dominyktiller@gmail.com> Date: Wed, 10 Aug 2016 17:28:24 +0100 Subject: [PATCH] gpg: simplify available check which_all already runs some checks to see if the file is a file & is executable. Our usage here inside `self.available?` is mostly a smoke test. Closes #676. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com> --- Library/Homebrew/gpg.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/gpg.rb b/Library/Homebrew/gpg.rb index a9ae0276b5..066f67864e 100644 --- a/Library/Homebrew/gpg.rb +++ b/Library/Homebrew/gpg.rb @@ -20,7 +20,7 @@ class Gpg GPG_EXECUTABLE = gpg2 || gpg def self.available? - File.exist?(GPG_EXECUTABLE.to_s) && File.executable?(GPG_EXECUTABLE.to_s) + File.executable?(GPG_EXECUTABLE.to_s) end def self.create_test_key(path) -- GitLab