Just use resolved_path.file?.
This commit is contained in:
parent
9b50fd81d7
commit
f287214699
@ -48,8 +48,7 @@ module CleanupRefinement
|
|||||||
end
|
end
|
||||||
|
|
||||||
def stale?(scrub = false)
|
def stale?(scrub = false)
|
||||||
return false unless file? || (symlink? && resolved_path.file?)
|
return false unless resolved_path.file?
|
||||||
|
|
||||||
stale_formula?(scrub) || stale_cask?(scrub)
|
stale_formula?(scrub) || stale_cask?(scrub)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user