mirror of
https://github.com/ruby/ruby.git
synced 2026-11-09 08:42:18 +08:00
The previous message used xmlschema, which was inaccurate for an rfc3339 parse. While we could have _xmlschema take an extra argument for the callee, it seems simpler to have _xmlschema return nil for an unmatched parse, and do the raising in xmlschema/rfc3339. With this approach, we can reduce the nesting by using an early return. https://github.com/ruby/time/commit/69dffef339