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 /pkg/bindings | |
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 'pkg/bindings')
-rw-r--r-- | pkg/bindings/containers/archive.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/bindings/containers/archive.go b/pkg/bindings/containers/archive.go index d1bbc0b95..18871cfd1 100644 --- a/pkg/bindings/containers/archive.go +++ b/pkg/bindings/containers/archive.go @@ -30,7 +30,7 @@ func Stat(ctx context.Context, nameOrID string, path string) (*entities.Containe var finalErr error if response.StatusCode == http.StatusNotFound { - finalErr = copy.ENOENT + finalErr = copy.ErrENOENT } else if response.StatusCode != http.StatusOK { finalErr = errors.New(response.Status) } |