Skip to content

Commit

Permalink
fix other api cases with underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
sduchesneau committed Jun 26, 2024
1 parent 0db2443 commit 85ad599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templating.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func SanitizeProtoFieldName(name string) string {
name = "u" + name
}
if strings.HasSuffix(name, "_") {
name = name + "u"
name = strings.TrimSuffix(name, "_")
}
return name
}

0 comments on commit 85ad599

Please sign in to comment.