rubocop: fix Style/IfInsideElse

This commit is contained in:
Jonathan Chang 2020-11-10 00:13:15 +11:00
parent 500908ee6f
commit f9fec9bdc7

View File

@ -126,8 +126,8 @@ module Homebrew
end
end
puts if args.preinstall?
else
puts "Already up-to-date." if !args.preinstall? && !ENV["HOMEBREW_UPDATE_FAILED"]
elsif !args.preinstall? && !ENV["HOMEBREW_UPDATE_FAILED"]
puts "Already up-to-date."
end
Commands.rebuild_commands_completion_list