Skip to content

Commit

Permalink
fix: string cutset method usage (#1406)
Browse files Browse the repository at this point in the history
  • Loading branch information
ismdeep committed Jan 12, 2023
1 parent 00dd8cb commit 0d72fbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,9 @@ func (pkgDefs *PackagesDefinitions) collectConstEnums(parsedSchemas map[*TypeSpe
}
if constVar.Comment != nil && len(constVar.Comment.List) > 0 {
enumValue.Comment = constVar.Comment.List[0].Text
enumValue.Comment = strings.TrimLeft(enumValue.Comment, "//")
enumValue.Comment = strings.TrimLeft(enumValue.Comment, "/*")
enumValue.Comment = strings.TrimRight(enumValue.Comment, "*/")
enumValue.Comment = strings.TrimPrefix(enumValue.Comment, "//")
enumValue.Comment = strings.TrimPrefix(enumValue.Comment, "/*")
enumValue.Comment = strings.TrimSuffix(enumValue.Comment, "*/")
enumValue.Comment = strings.TrimSpace(enumValue.Comment)
}
typeDef.Enums = append(typeDef.Enums, enumValue)
Expand Down

0 comments on commit 0d72fbd

Please sign in to comment.