Skip to content

Commit 307937c

Browse files
testwillci-robot
authored andcommitted
chore: unnecessary use of fmt.Sprintf (#1166)
Signed-off-by: guoguangwu <[email protected]> Upstream-repository: operator-registry Upstream-commit: 6cb25c26756c4eeadd29a43ffc4d45cd43159e4e
1 parent 6f363d5 commit 307937c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

staging/operator-registry/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

staging/operator-registry/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

vendor/github.com/operator-framework/operator-registry/pkg/containertools/dockerfilegenerator.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)