dev-cmd/edit: simplify flag check.

Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
This commit is contained in:
Mike McQuaid 2024-08-21 08:51:04 +01:00 committed by GitHub
parent 89af10f29a
commit 08c7044598
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,7 +62,7 @@ module Homebrew
exec_editor(*paths)
if paths.any? do |path|
next if path.is_a?(String) && path == "--project"
next if path == "--project"
!Homebrew::EnvConfig.no_install_from_api? &&
!Homebrew::EnvConfig.no_env_hints? &&