Skip to content

Commit

Permalink
bug: fix slice init length
Browse files Browse the repository at this point in the history
Signed-off-by: cuishuang <[email protected]>
  • Loading branch information
cuishuang committed Aug 29, 2024
1 parent 01bf561 commit 9ec08d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/skaffold/tag/tagger_mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (t *TaggerMux) GenerateTag(ctx context.Context, image latest.Artifact) (str
func NewTaggerMux(runCtx *runcontext.RunContext) (Tagger, error) {
pipelines := runCtx.GetPipelines()
m := make(map[string]Tagger)
sl := make([]Tagger, len(pipelines))
sl := make([]Tagger, 0, len(pipelines))
for _, p := range pipelines {
t, err := getTagger(runCtx, &p.Build.TagPolicy)
if err != nil {
Expand Down

0 comments on commit 9ec08d4

Please sign in to comment.