aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-09-08 19:42:16 -0500
committerJack Nagel2014-09-08 19:50:13 -0500
commit8ef16ec9660b946d8f1740fa408a788ff4fafb01 (patch)
treef9a8d06f96fe59e3de26b8543e4a0fabbf9a6b51 /Library
parentaba37145acde66bc6728cbe292703e4210ca34a8 (diff)
downloadhomebrew-8ef16ec9660b946d8f1740fa408a788ff4fafb01.tar.bz2
Avoid early return
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmd/brew-test-bot.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb
index da6ba1c6e..ea8f98add 100755
--- a/Library/Contributions/cmd/brew-test-bot.rb
+++ b/Library/Contributions/cmd/brew-test-bot.rb
@@ -120,12 +120,13 @@ class Step
@status = success ? :passed : :failed
puts_result
- return unless File.exist?(log)
- @output = File.read(log)
- if has_output? and (not success or @puts_output_on_success)
- puts @output
+ if File.exist?(log)
+ @output = File.read(log)
+ if has_output? and (not success or @puts_output_on_success)
+ puts @output
+ end
+ FileUtils.rm(log) unless ARGV.include? "--keep-logs"
end
- FileUtils.rm(log) unless ARGV.include? "--keep-logs"
end
end