mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
Fixup issues found by golint
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -34,9 +34,9 @@ func (s *APIServer) APIHandler(h http.HandlerFunc) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// TODO: Use r.ConnContext when ported to go 1.13
|
||||
c := context.WithValue(r.Context(), "decoder", s.Decoder)
|
||||
c = context.WithValue(c, "runtime", s.Runtime)
|
||||
c = context.WithValue(c, "shutdownFunc", s.Shutdown)
|
||||
c := context.WithValue(r.Context(), "decoder", s.Decoder) //nolint
|
||||
c = context.WithValue(c, "runtime", s.Runtime) //nolint
|
||||
c = context.WithValue(c, "shutdownFunc", s.Shutdown) //nolint
|
||||
r = r.WithContext(c)
|
||||
|
||||
h(w, r)
|
||||
|
Reference in New Issue
Block a user