summaryrefslogtreecommitdiff
path: root/pkg/api/handlers
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2020-05-14 17:34:42 -0400
committerMatthew Heon <matthew.heon@pm.me>2020-05-14 17:34:42 -0400
commit79ad6bb53d2409c04f54c292c62bb8021002cfe1 (patch)
treef8cc945f381bb2ea0becf3fc7c891d8f44f0ffaa /pkg/api/handlers
parent50ed292aee513667684e695b3d4b061fbac3d696 (diff)
downloadpodman-79ad6bb53d2409c04f54c292c62bb8021002cfe1.tar.gz
podman-79ad6bb53d2409c04f54c292c62bb8021002cfe1.tar.bz2
podman-79ad6bb53d2409c04f54c292c62bb8021002cfe1.zip
Fix lint
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'pkg/api/handlers')
-rw-r--r--pkg/api/handlers/compat/exec.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/exec.go b/pkg/api/handlers/compat/exec.go
index 6f62dca11..6ff9f607a 100644
--- a/pkg/api/handlers/compat/exec.go
+++ b/pkg/api/handlers/compat/exec.go
@@ -170,7 +170,7 @@ func ExecStartHandler(w http.ResponseWriter, r *http.Request) {
errors.Wrapf(err, "failed to decode parameters for %s", r.URL.String()))
return
}
- if bodyParams.Detach == true {
+ if bodyParams.Detach {
utils.Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest,
errors.Errorf("Detached exec is not yet supported"))
return