Skip to content

Commit

Permalink
lint: remove unused fieldsPath
Browse files Browse the repository at this point in the history
Signed-off-by: Yadong Ding <[email protected]>
  • Loading branch information
Desiki-high committed Sep 16, 2024
1 parent 481a63b commit 0db032e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions contrib/nydusify/pkg/converter/provider/ported.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,7 @@ func load(ctx context.Context, reader io.Reader, store content.Store, iopts impo
}

for i := range imgs {
fieldsPath := []string{"target"}
if iopts.imageLabels != nil {
fieldsPath = append(fieldsPath, "labels")
imgs[i].Labels = iopts.imageLabels
}
}
Expand Down

0 comments on commit 0db032e

Please sign in to comment.