From a5aef9785106c86f5a573a527715f32d93315fe9 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Wed, 1 Mar 2023 09:13:42 -0800 Subject: [PATCH] brew style --fix --- Library/Homebrew/build_options.rb | 2 +- Library/Homebrew/utils/curl.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/build_options.rb b/Library/Homebrew/build_options.rb index 5f173ad2d2..10149e805a 100644 --- a/Library/Homebrew/build_options.rb +++ b/Library/Homebrew/build_options.rb @@ -29,7 +29,7 @@ class BuildOptions if option_defined? "with-#{name}" include? "with-#{name}" elsif option_defined? "without-#{name}" - !include? "without-#{name}" # rubocop:disable Rails/NegateInclude + !include? "without-#{name}" else false end diff --git a/Library/Homebrew/utils/curl.rb b/Library/Homebrew/utils/curl.rb index 472b53db94..80cf0517dc 100644 --- a/Library/Homebrew/utils/curl.rb +++ b/Library/Homebrew/utils/curl.rb @@ -132,7 +132,7 @@ module Utils timeout: end_time&.remaining, **command_options - return result if result.success? || !args.exclude?("--http1.1") + return result if result.success? || args.include?("--http1.1") raise Timeout::Error, result.stderr.lines.last.chomp if timeout && result.status.exitstatus == 28