From 73653b58f23e6e8ab994e8467ff947f213d5a64c Mon Sep 17 00:00:00 2001 From: 9547 Date: Mon, 14 Sep 2020 20:28:47 +0800 Subject: [PATCH] pkg/repository: fix comment by `make lint` --- pkg/repository/v1_repository.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/repository/v1_repository.go b/pkg/repository/v1_repository.go index 24c2571cec..64ab31e473 100644 --- a/pkg/repository/v1_repository.go +++ b/pkg/repository/v1_repository.go @@ -498,7 +498,7 @@ func (r *V1Repository) FetchComponent(item *v1manifest.VersionItem) (io.Reader, return checkHash(reader, item.Hashes[v1manifest.SHA256]) } -// DoDownloadComponent downloads the component specified by item into local file +// DownloadComponent downloads the component specified by item into local file func (r *V1Repository) DownloadComponent(item *v1manifest.VersionItem, target string) error { targetDir := filepath.Dir(target) err := r.mirror.Download(item.URL, targetDir)