From 14dc7d6bb8442b8dc64f63d1c87d94bf138026b9 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 18 Mar 2019 14:30:58 +0000 Subject: [PATCH] exceptions: fix RuboCop warning with `present?` --- Library/Homebrew/exceptions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 183551578c..7e47382b58 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -419,7 +419,7 @@ class BuildError < RuntimeError puts - unless issues&.empty? + if issues.present? puts "These open issues may also help:" puts issues.map { |i| "#{i["title"]} #{i["html_url"]}" }.join("\n") end