diff options
author | Paul Holzinger <paul.holzinger@web.de> | 2021-02-11 22:28:35 +0100 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-02-18 11:09:50 -0500 |
commit | 6470f970154c4d21e591fe18d59d1f471b51b5d7 (patch) | |
tree | 5927d60cbbe96af91ac8a0ececcc06e01496d2ad /libpod/image | |
parent | 3bddeebf930efb872b99966df5553e0baf81834a (diff) | |
download | podman-6470f970154c4d21e591fe18d59d1f471b51b5d7.tar.gz podman-6470f970154c4d21e591fe18d59d1f471b51b5d7.tar.bz2 podman-6470f970154c4d21e591fe18d59d1f471b51b5d7.zip |
Enable golint linter
Use the golint linter and fix the reported problems.
[NO TESTS NEEDED]
Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'libpod/image')
-rw-r--r-- | libpod/image/utils.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libpod/image/utils.go b/libpod/image/utils.go index 5e7fed5c6..6cc613b28 100644 --- a/libpod/image/utils.go +++ b/libpod/image/utils.go @@ -75,9 +75,8 @@ func findImageInRepotags(search imageParts, images []*Image) (*storage.Image, er } if rwImageCnt > 1 { return nil, errors.Wrapf(define.ErrMultipleImages, "found multiple read/write images %s", strings.Join(keys, ",")) - } else { - return nil, errors.Wrapf(define.ErrMultipleImages, "found multiple read/only images %s", strings.Join(keys, ",")) } + return nil, errors.Wrapf(define.ErrMultipleImages, "found multiple read/only images %s", strings.Join(keys, ",")) } return candidates[0].image.image, nil } |