dev-cmd/edit: remove unneeded variable.

This commit is contained in:
Mike McQuaid 2025-04-11 16:07:29 +01:00 committed by GitHub
parent fff2c3ea79
commit e98a052896
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,8 +64,7 @@ module Homebrew
exec_editor(*paths) exec_editor(*paths)
is_formula = T.let(false, T::Boolean) is_formula = T.let(false, T::Boolean)
show_hint = !Homebrew::EnvConfig.no_env_hints? if !Homebrew::EnvConfig.no_env_hints? && paths.any? do |path|
if show_hint && paths.any? do |path|
next if path == "--project" next if path == "--project"
is_formula = core_formula_path?(path) is_formula = core_formula_path?(path)