Skip to content

Commit

Permalink
chore: unnecessary use of fmt.Sprintf (#1166)
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill authored Nov 14, 2023
1 parent f7c6429 commit 6cb25c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/containertools/dockerfilegenerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ func (g *IndexDockerfileGenerator) GenerateIndexDockerfile(binarySourceImage, da

// Content
dockerfile += fmt.Sprintf("ADD %s %s\n", databasePath, DefaultDbLocation)
dockerfile += fmt.Sprintf("EXPOSE 50051\n")
dockerfile += fmt.Sprintf("ENTRYPOINT [\"/bin/opm\"]\n")
dockerfile += "EXPOSE 50051\n"
dockerfile += "ENTRYPOINT [\"/bin/opm\"]\n"
dockerfile += fmt.Sprintf("CMD [\"registry\", \"serve\", \"--database\", \"%s\"]\n", DefaultDbLocation)

return dockerfile
Expand Down
2 changes: 1 addition & 1 deletion pkg/lib/bundle/generate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestGetMediaType(t *testing.T) {
{
"./testdata/get_mediatype/empty_bundle",
"",
fmt.Sprintf("The directory contains no files"),
"The directory contains no files",
},
}

Expand Down

0 comments on commit 6cb25c2

Please sign in to comment.