Remove redundant unless

Co-authored-by: Bo Anderson <mail@boanderson.me>
This commit is contained in:
Rylan Polster 2024-08-02 19:20:38 -04:00 committed by GitHub
parent 1c234c380a
commit afc8c0fa62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -90,7 +90,7 @@ module Homebrew
if (watchman = which("watchman", ORIGINAL_PATHS)) if (watchman = which("watchman", ORIGINAL_PATHS))
srb_exec << "--watchman-path" << watchman srb_exec << "--watchman-path" << watchman
else else
srb_exec << "--disable-watchman" unless which("watchman", ORIGINAL_PATHS) srb_exec << "--disable-watchman"
end end
end end