-
- Downloads
Further simplification of parsing
This moves all error handling to a single call to `valid?`, eliminating the need to store the input string on the identifier, and allowing removal of several methods. In return, all other methods are made nil-safe.
parent
4eb9765e
No related branches found
No related tags found
Showing
- lib/gitlab/gl_repository/identifier.rb 36 additions, 32 deletionslib/gitlab/gl_repository/identifier.rb
- spec/lib/gitlab/gl_repository/identifier_spec.rb 24 additions, 0 deletionsspec/lib/gitlab/gl_repository/identifier_spec.rb
- spec/support/shared_examples/lib/gitlab/gl_repository_shared_examples.rb 1 addition, 8 deletions...ared_examples/lib/gitlab/gl_repository_shared_examples.rb
Please register or sign in to comment