Avoid using the same name with method

This commit is contained in:
Lin Jen-Shin 2016-09-21 14:45:11 +08:00
parent 9dffd2c08c
commit 5869fb2014
1 changed files with 4 additions and 4 deletions

View File

@ -238,11 +238,11 @@ module Ci
end
def trace
trace = raw_trace
if project && trace.present? && project.runners_token.present?
trace.gsub(project.runners_token, 'xxxxxx')
result = raw_trace
if project && result.present? && project.runners_token.present?
result.gsub(project.runners_token, 'xxxxxx')
else
trace
result
end
end