cmd/unlinkapps: fix Rubocop warnings.
This commit is contained in:
parent
56fc1c725a
commit
7b41ccd2ea
@ -65,7 +65,7 @@ module Homebrew
|
|||||||
|
|
||||||
def unlinkapps_unlink?(target_app, opts = {})
|
def unlinkapps_unlink?(target_app, opts = {})
|
||||||
# Skip non-symlinks and symlinks that don't point into the Homebrew prefix.
|
# Skip non-symlinks and symlinks that don't point into the Homebrew prefix.
|
||||||
app = "#{target_app.readlink}" if target_app.symlink?
|
app = target_app.readlink.to_s if target_app.symlink?
|
||||||
return false unless app && app.start_with?(*UNLINKAPPS_PREFIXES)
|
return false unless app && app.start_with?(*UNLINKAPPS_PREFIXES)
|
||||||
|
|
||||||
if opts.fetch(:prune, false)
|
if opts.fetch(:prune, false)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user