Skip to content

Commit

Permalink
refactor: the plural form of prefix is prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mackee committed Oct 18, 2022
1 parent a85d9bc commit e35563e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ func toTable(tablePkg *types.Package, annotationComment string, gd *ast.GenDecl,
}

func trimAnnotation(comment string) string {
prefixies := []string{"//+table: ", "// +table: ", "//sqlla:table "}
for _, prefix := range prefixies {
prefixes := []string{"//+table: ", "// +table: ", "//sqlla:table "}
for _, prefix := range prefixes {
if trimmed := strings.TrimPrefix(comment, prefix); trimmed != comment {
return trimmed
}
Expand Down

0 comments on commit e35563e

Please sign in to comment.