Skip to content

Commit

Permalink
Less method invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Nov 5, 2016
1 parent a432e6d commit 51e991f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -26,7 +26,7 @@ def serialize
if parts.key?(:seconds)
time << "#{sprintf(@precision ? "%0.0#{@precision}f" : '%g', parts[:seconds])}S"
end
output << "T#{time}" if time.present?
output << "T#{time}" unless time.empty?
"#{sign}#{output}"
end

Expand Down

0 comments on commit 51e991f

Please sign in to comment.