From cbf458ea9c6dfeca2bf9e2cc3027969958dc33db Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 14 Oct 2019 09:03:02 +0100 Subject: [PATCH] Lint/ElseAlignment: ignore some bugged autocorrections. --- Library/Homebrew/formula_installer.rb | 4 ++-- Library/Homebrew/utils/fork.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 320bd1c1d5..cf09671f89 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -369,8 +369,8 @@ class FormulaInstaller $stderr.puts "Please report this to the #{formula.tap} tap!" false - else - f.linked_keg.exist? && f.opt_prefix.exist? + else # rubocop:disable Lint/ElseAlignment + f.linked_keg.exist? && f.opt_prefix.exist? end raise FormulaConflictError.new(formula, conflicts) unless conflicts.empty? diff --git a/Library/Homebrew/utils/fork.rb b/Library/Homebrew/utils/fork.rb index ea6127408f..8a626369fd 100644 --- a/Library/Homebrew/utils/fork.rb +++ b/Library/Homebrew/utils/fork.rb @@ -53,8 +53,8 @@ module Utils write.close exit! - else - exit!(true) + else # rubocop:disable Lint/ElseAlignment + exit!(true) end ignore_interrupts(:quietly) do # the child will receive the interrupt and marshal it back