Skip to content

Commit 264e274

Browse files
authored
chore: remove unused taggers field (GoogleContainerTools#9513)
Signed-off-by: cuishuang <[email protected]>
1 parent 0afa8e3 commit 264e274

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pkg/skaffold/tag/tagger_mux.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import (
2626
)
2727

2828
type TaggerMux struct {
29-
taggers []Tagger
3029
byImageName map[string]Tagger
3130
}
3231

@@ -41,18 +40,16 @@ func (t *TaggerMux) GenerateTag(ctx context.Context, image latest.Artifact) (str
4140
func NewTaggerMux(runCtx *runcontext.RunContext) (Tagger, error) {
4241
pipelines := runCtx.GetPipelines()
4342
m := make(map[string]Tagger)
44-
sl := make([]Tagger, len(pipelines))
4543
for _, p := range pipelines {
4644
t, err := getTagger(runCtx, &p.Build.TagPolicy)
4745
if err != nil {
4846
return nil, fmt.Errorf("creating tagger: %w", err)
4947
}
50-
sl = append(sl, t)
5148
for _, a := range p.Build.Artifacts {
5249
m[a.ImageName] = t
5350
}
5451
}
55-
return &TaggerMux{taggers: sl, byImageName: m}, nil
52+
return &TaggerMux{byImageName: m}, nil
5653
}
5754

5855
func getTagger(runCtx *runcontext.RunContext, t *latest.TagPolicy) (Tagger, error) {

0 commit comments

Comments
 (0)