Skip to content

Commit

Permalink
fix: don't insert underscores for retry codes (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidt-sebastian authored and alexander-fenster committed Dec 14, 2019
1 parent 3ec17f1 commit 88f1e33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions typescript/src/schema/proto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ export class RetryableCodeMap {
const uniqueName = sortedCodes
.map(code => this.codeEnumMapping[code])
.join('_')
// toSnakeCase() splits on uppercase and we only want to split on
// underscores since all enum codes are uppercase.
.toLowerCase()
.toSnakeCase();
return uniqueName;
}
Expand Down

0 comments on commit 88f1e33

Please sign in to comment.