From 7a88125df04b71f98fb8bbdca90bf8bbf7dac1fd Mon Sep 17 00:00:00 2001 From: Issy Long Date: Tue, 14 Jan 2025 22:48:35 +0000 Subject: [PATCH] The `Style/AvoidDoubleNegation` RuboCop is insistent --- Library/Homebrew/utils/pypi.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/utils/pypi.rb b/Library/Homebrew/utils/pypi.rb index 9b0940ef2a..f7efc6d8a2 100644 --- a/Library/Homebrew/utils/pypi.rb +++ b/Library/Homebrew/utils/pypi.rb @@ -328,11 +328,11 @@ module PyPI # Resolve the dependency tree of all input packages show_info = !print_only && !silent ohai "Retrieving PyPI dependencies for \"#{input_packages.join(" ")}\"..." if show_info - found_packages = pip_report(input_packages, python_name:, print_stderr: !!(verbose && show_info)) + found_packages = pip_report(input_packages, python_name:, print_stderr: !(verbose && show_info).nil?) # Resolve the dependency tree of excluded packages to prune the above exclude_packages.delete_if { |package| found_packages.exclude? package } ohai "Retrieving PyPI dependencies for excluded \"#{exclude_packages.join(" ")}\"..." if show_info - exclude_packages = pip_report(exclude_packages, python_name:, print_stderr: !!(verbose && show_info)) + exclude_packages = pip_report(exclude_packages, python_name:, print_stderr: !(verbose && show_info).nil?) exclude_packages += [Package.new(T.must(main_package.name))] unless main_package.nil? new_resource_blocks = ""