mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Less method invocation
This commit is contained in:
parent
a432e6dba4
commit
51e991f0b2
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ module ActiveSupport
|
||||||
if parts.key?(:seconds)
|
if parts.key?(:seconds)
|
||||||
time << "#{sprintf(@precision ? "%0.0#{@precision}f" : '%g', parts[:seconds])}S"
|
time << "#{sprintf(@precision ? "%0.0#{@precision}f" : '%g', parts[:seconds])}S"
|
||||||
end
|
end
|
||||||
output << "T#{time}" if time.present?
|
output << "T#{time}" unless time.empty?
|
||||||
"#{sign}#{output}"
|
"#{sign}#{output}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue