diff options
author | Paul Holzinger <paul.holzinger@web.de> | 2021-02-11 22:28:35 +0100 |
---|---|---|
committer | Paul Holzinger <paul.holzinger@web.de> | 2021-02-11 23:01:49 +0100 |
commit | 69ab67bf90aa4bbd285f360e3bca4c85b6028908 (patch) | |
tree | 3ab90163357d9d85aedae6555934ae5744b4ac83 /pkg/api/handlers/utils/containers.go | |
parent | ef2fc90f2d0057bfddee1b83d307e853181a4988 (diff) | |
download | podman-69ab67bf90aa4bbd285f360e3bca4c85b6028908.tar.gz podman-69ab67bf90aa4bbd285f360e3bca4c85b6028908.tar.bz2 podman-69ab67bf90aa4bbd285f360e3bca4c85b6028908.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/api/handlers/utils/containers.go')
-rw-r--r-- | pkg/api/handlers/utils/containers.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pkg/api/handlers/utils/containers.go b/pkg/api/handlers/utils/containers.go index 518309a03..f281c616d 100644 --- a/pkg/api/handlers/utils/containers.go +++ b/pkg/api/handlers/utils/containers.go @@ -130,10 +130,9 @@ func WaitContainerLibpod(w http.ResponseWriter, r *http.Request) { if errors.Cause(err) == define.ErrNoSuchCtr { ContainerNotFound(w, name, err) return - } else { - InternalServerError(w, err) - return } + InternalServerError(w, err) + return } WriteResponse(w, http.StatusOK, strconv.Itoa(int(exitCode))) } @@ -200,9 +199,8 @@ func waitRemoved(ctrWait containerWaitFn) (int32, error) { code, err := ctrWait(define.ContainerStateUnknown) if err != nil && errors.Cause(err) == define.ErrNoSuchCtr { return code, nil - } else { - return code, err } + return code, err } func waitNextExit(ctrWait containerWaitFn) (int32, error) { |