aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-03-13 09:09:18 +0000
committerMike McQuaid2014-03-13 10:05:20 +0000
commit12bcde60e4e252c0423a33305f91e384465f635b (patch)
treed15638e1e3a1c0c8a90b6733a37dba1967506fe2 /Library
parent9addf4a9a6826ff8f57e264cb77d957c916923d7 (diff)
downloadhomebrew-12bcde60e4e252c0423a33305f91e384465f635b.tar.bz2
utils: return empty issues array when no API.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index f272ab34c..519b2869a 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -361,7 +361,7 @@ module GitHub extend self
end
def print_pull_requests_matching(query)
- return if ENV['HOMEBREW_NO_GITHUB_API']
+ return [] if ENV['HOMEBREW_NO_GITHUB_API']
puts "Searching pull requests..."
open_or_closed_prs = issues_matching(query, :type => "pr")