Skip to content

Commit

Permalink
fix: prefer sprintf to concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
elsapet committed Aug 17, 2023
1 parent 9e0d81f commit b3fc3f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gen-doc-yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func writeDocs(cmd *cobra.Command, dir string) error {
basename := "bearer.yaml"

if cmd.CommandPath() != "" {
basename = "bearer" + strings.Replace(cmd.CommandPath(), " ", "_", -1) + ".yaml"
basename = fmt.Sprintf("bearer%s.yaml", strings.Replace(cmd.CommandPath(), " ", "_", -1))
}

filename := filepath.Join(dir, basename)
Expand Down

0 comments on commit b3fc3f4

Please sign in to comment.