Skip to content

Commit 4bfaf57

Browse files
author
Moritz Clasmeier
committed
Make <image> a const
1 parent 0675e3c commit 4bfaf57

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

internal/deployer/local_images_generic.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ import (
1111
"github.com/stackrox/roxie/internal/logger"
1212
)
1313

14+
const (
15+
imageSubstitutionKeyword = "<image>"
16+
)
17+
1418
type genericImageSender struct {
1519
log *logger.Logger
1620
args []string
@@ -30,7 +34,7 @@ func (g *genericImageSender) SendImage(ctx context.Context, imageTag string) err
3034

3135
args := make([]string, len(g.args))
3236
for i, arg := range g.args {
33-
if arg == "<image>" {
37+
if arg == imageSubstitutionKeyword {
3438
args[i] = imageTag
3539
} else {
3640
args[i] = g.args[i]

0 commit comments

Comments
 (0)