diff options
| author | Dominyk Tiller | 2016-08-10 17:28:24 +0100 |
|---|---|---|
| committer | Dominyk Tiller | 2016-08-12 23:46:43 +0100 |
| commit | 2776f08fa095b95dafbc9af5f80188f3f063e001 (patch) | |
| tree | dc012cc0c8d1f35b8563f723a501968d25bc8b39 | |
| parent | 3005582f15237393d6dd9df5e8b6429112b2e12a (diff) | |
| download | brew-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>
| -rw-r--r-- | Library/Homebrew/gpg.rb | 2 |
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) |
