diff options
| author | Teddy Wing | 2017-11-15 16:22:05 +0100 |
|---|---|---|
| committer | Teddy Wing | 2017-11-15 16:22:05 +0100 |
| commit | 35def4911d4eb7f6f3c2aadb6b1983993f9293f6 (patch) | |
| tree | 78f663c91004a5add71d984a2621fdc472fcb944 /spec/support/with_commit.rb | |
| parent | 28b4f328e455a425c6222cdd249515ea958a45d3 (diff) | |
| download | chouette-core-35def4911d4eb7f6f3c2aadb6b1983993f9293f6.tar.bz2 | |
schema_spec: Remove unnecessary capture
Thanks to Robert for suggesting `(?:...)`. I didn't know that syntax,
happy I learned something new. Here, I had used parentheses for the "or"
(`|`), but didn't need the captured value. To do the "or" without
capturing, you can use the `?:` inside the start of the parentheses.
Refs #4951
Diffstat (limited to 'spec/support/with_commit.rb')
0 files changed, 0 insertions, 0 deletions
