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
commitf6eedf946487980c740f5e0595fb46a5a2710597 (patch)
treef893133bc39dbc14b62460fdb3f25cd94c447016 /Library
parentfbc5d6c31f71bc8b259b686809c7d976e1e2a084 (diff)
downloadbrew-f6eedf946487980c740f5e0595fb46a5a2710597.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