diff --git a/Library/Homebrew/dev-cmd/edit.rb b/Library/Homebrew/dev-cmd/edit.rb index ed1b040e06..d88d603735 100644 --- a/Library/Homebrew/dev-cmd/edit.rb +++ b/Library/Homebrew/dev-cmd/edit.rb @@ -64,8 +64,7 @@ module Homebrew exec_editor(*paths) is_formula = T.let(false, T::Boolean) - show_hint = !Homebrew::EnvConfig.no_env_hints? - if show_hint && paths.any? do |path| + if !Homebrew::EnvConfig.no_env_hints? && paths.any? do |path| next if path == "--project" is_formula = core_formula_path?(path)