diff --git a/Library/Homebrew/dev-cmd/edit.rb b/Library/Homebrew/dev-cmd/edit.rb index 464d5dab16..26be25488d 100644 --- a/Library/Homebrew/dev-cmd/edit.rb +++ b/Library/Homebrew/dev-cmd/edit.rb @@ -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? &&