aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/gpg.rb
diff options
context:
space:
mode:
authorDominyk Tiller2016-08-10 17:28:24 +0100
committerDominyk Tiller2016-08-12 23:46:43 +0100
commit2776f08fa095b95dafbc9af5f80188f3f063e001 (patch)
treedc012cc0c8d1f35b8563f723a501968d25bc8b39 /Library/Homebrew/gpg.rb
parent3005582f15237393d6dd9df5e8b6429112b2e12a (diff)
downloadbrew-2776f08fa095b95dafbc9af5f80188f3f063e001.tar.bz2
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>
Diffstat (limited to 'Library/Homebrew/gpg.rb')
-rw-r--r--Library/Homebrew/gpg.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/gpg.rb b/Library/Homebrew/gpg.rb
index a9ae0276b..066f67864 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)