* tool/redmine-backporter.rb: should add the value after checking error.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2014-02-22 11:50:56 +00:00
parent 358d800232
commit 7662937cab
1 changed files with 2 additions and 2 deletions

View File

@ -77,9 +77,9 @@ class String
seq << "\e[#{c}m" seq << "\e[#{c}m"
end end
if back if back
c = COLORS[back] + 10 c = COLORS[back]
raise "unknown background color #{back}" unless c raise "unknown background color #{back}" unless c
seq << "\e[#{c}m" seq << "\e[#{c + 10}m"
end end
if seq.empty? if seq.empty?
self self