1
0
Fork 0
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:
Akira Matsuda 2016-11-05 15:35:11 +09:00
parent a432e6dba4
commit 51e991f0b2

View file

@ -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