From 6d4bce4baafcb34c11cbca12b0d75458a0111ed9 Mon Sep 17 00:00:00 2001 From: Elizabeth Tackett Date: Wed, 22 Jul 2020 10:06:54 -0500 Subject: [PATCH] fix syntactical issues --- Library/Homebrew/dev-cmd/bump.rb | 4 ++-- Library/Homebrew/diagnostic.rb | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/dev-cmd/bump.rb b/Library/Homebrew/dev-cmd/bump.rb index 62f6bf02f5..3bbbed9996 100644 --- a/Library/Homebrew/dev-cmd/bump.rb +++ b/Library/Homebrew/dev-cmd/bump.rb @@ -97,8 +97,8 @@ module Homebrew end def display(outdated_packages) - ohai "Outdated formulae\n" - + ohai "Outdated formulae" + puts outdated_packages.each do |formula, package_details| ohai formula puts "Current formula version: #{package_details[:current_formula_version]}" diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index 49a44ef4b2..6f1f01234e 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -671,7 +671,9 @@ module Homebrew next if status.blank? # these will result in uncommitted gems. - next if path == HOMEBREW_REPOSITORY && (ENV["HOMEBREW_SORBET"] || ENV["HOMEBREW_PATCHELF_RB"]) + if path == HOMEBREW_REPOSITORY + next if ENV["HOMEBREW_SORBET"] || ENV["HOMEBREW_PATCHELF_RB"] + end message ||= "" message += "\n" unless message.empty?