Skip to content

Commit

Permalink
not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksnyder committed Dec 2, 2023
1 parent 78757ce commit 2adf25a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions v2/internal/plural/codegen/xml.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@ var relationRegexp = regexp.MustCompile(`([niftvwce])(?:\s*%\s*([0-9]+))?\s*(!=|

// GoCondition converts the XML condition to valid Go code.
func (pr *PluralRule) GoCondition() string {
condition, _ := strings.CutSuffix(pr.Condition(), "@")
var ors []string
for _, and := range strings.Split(condition, "or") {
for _, and := range strings.Split(pr.Condition(), "or") {
var ands []string
for _, relation := range strings.Split(and, "and") {
parts := relationRegexp.FindStringSubmatch(relation)
Expand Down

0 comments on commit 2adf25a

Please sign in to comment.