daemon/images: fix empty-lines (revive)
daemon/images/image_squash.go:17:71: empty-lines: extra empty line at the start of a block (revive)
daemon/images/store.go:128:27: empty-lines: extra empty line at the end of a block (revive)
daemon/images/image_list.go:154:55: empty-lines: extra empty line at the start of a block (revive)
daemon/images/image_delete.go:135:13: empty-lines: extra empty line at the end of a block (revive)
daemon/images/image_search.go:25:64: empty-lines: extra empty line at the start of a block (revive)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 05042ce472
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
7cb488934b
commit
9136c32327
|
@ -132,7 +132,6 @@ func (i *ImageService) ImageDelete(imageRef string, force, prune bool) ([]types.
|
||||||
records = append(records, untaggedRecord)
|
records = append(records, untaggedRecord)
|
||||||
} else {
|
} else {
|
||||||
remainingRefs = append(remainingRefs, repoRef)
|
remainingRefs = append(remainingRefs, repoRef)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
repoRefs = remainingRefs
|
repoRefs = remainingRefs
|
||||||
|
|
|
@ -24,7 +24,6 @@ var acceptedSearchFilterTags = map[string]bool{
|
||||||
func (i *ImageService) SearchRegistryForImages(ctx context.Context, searchFilters filters.Args, term string, limit int,
|
func (i *ImageService) SearchRegistryForImages(ctx context.Context, searchFilters filters.Args, term string, limit int,
|
||||||
authConfig *types.AuthConfig,
|
authConfig *types.AuthConfig,
|
||||||
headers map[string][]string) (*registrytypes.SearchResults, error) {
|
headers map[string][]string) (*registrytypes.SearchResults, error) {
|
||||||
|
|
||||||
if err := searchFilters.Validate(acceptedSearchFilterTags); err != nil {
|
if err := searchFilters.Validate(acceptedSearchFilterTags); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
|
@ -160,7 +160,6 @@ func (i *ImageService) Images(_ context.Context, opts types.ImageListOptions) ([
|
||||||
}
|
}
|
||||||
if summary.RepoDigests == nil && summary.RepoTags == nil {
|
if summary.RepoDigests == nil && summary.RepoTags == nil {
|
||||||
if opts.All || len(i.imageStore.Children(id)) == 0 {
|
if opts.All || len(i.imageStore.Children(id)) == 0 {
|
||||||
|
|
||||||
if opts.Filters.Contains("dangling") && !danglingOnly {
|
if opts.Filters.Contains("dangling") && !danglingOnly {
|
||||||
// dangling=false case, so dangling image is not needed
|
// dangling=false case, so dangling image is not needed
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -129,7 +129,6 @@ func (c *contentStoreForPull) Writer(ctx context.Context, opts ...content.Writer
|
||||||
if err := o(&cfg); err != nil {
|
if err := o(&cfg); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
c.addDigested(cfg.Desc.Digest)
|
c.addDigested(cfg.Desc.Digest)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue