Skip to content

Commit 96f0173

Browse files
JoannaaKLSamMorrowDrums
authored andcommitted
Fix linter error
1 parent 0166ca5 commit 96f0173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/github-mcp-server/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func wordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName {
107107
from := []string{"_"}
108108
to := "-"
109109
for _, sep := range from {
110-
name = strings.Replace(name, sep, to, -1)
110+
name = strings.ReplaceAll(name, sep, to)
111111
}
112112
return pflag.NormalizedName(name)
113113
}

0 commit comments

Comments
 (0)