diff options
| author | Mike McQuaid | 2017-09-24 19:24:46 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2017-09-24 21:23:59 +0100 |
| commit | 01e9ec9a9f723b2ef89c7adfaea39f9e4db9aede (patch) | |
| tree | ee2cba40aabe7bd2b103f75cb61d5af3a83104d3 /Library/Homebrew/cmd | |
| parent | 9eb51db400261545822c8c03c2e9d587d70e8ad0 (diff) | |
| download | brew-01e9ec9a9f723b2ef89c7adfaea39f9e4db9aede.tar.bz2 | |
Rubocop: automatic rule fixes.
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/unlinkapps.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/unlinkapps.rb b/Library/Homebrew/cmd/unlinkapps.rb index 7cae97e27..56dba3603 100644 --- a/Library/Homebrew/cmd/unlinkapps.rb +++ b/Library/Homebrew/cmd/unlinkapps.rb @@ -77,7 +77,7 @@ module Homebrew def unlinkapps_unlink?(target_app, opts = {}) # Skip non-symlinks and symlinks that don't point into the Homebrew prefix. app = target_app.readlink.to_s if target_app.symlink? - return false unless app && app.start_with?(*UNLINKAPPS_PREFIXES) + return false unless app&.start_with?(*UNLINKAPPS_PREFIXES) if opts.fetch(:prune, false) !File.exist?(app) # Remove only broken symlinks in prune mode. |
