Skip to content

Commit 6cb25c2

Browse files
authored
chore: unnecessary use of fmt.Sprintf (#1166)
Signed-off-by: guoguangwu <[email protected]>
1 parent f7c6429 commit 6cb25c2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/containertools/dockerfilegenerator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ func (g *IndexDockerfileGenerator) GenerateIndexDockerfile(binarySourceImage, da
5050

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

5757
return dockerfile

pkg/lib/bundle/generate_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func TestGetMediaType(t *testing.T) {
3535
{
3636
"./testdata/get_mediatype/empty_bundle",
3737
"",
38-
fmt.Sprintf("The directory contains no files"),
38+
"The directory contains no files",
3939
},
4040
}
4141

0 commit comments

Comments
 (0)