diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 320bd1c1d..cf09671f8 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 ea6127408..8a626369f 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