Commit 9a775998 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Remove NopCloser

parent e122950d
......@@ -4,7 +4,6 @@ import (
"bytes"
"fmt"
"io"
"io/ioutil"
"net/http"
"gitlab.com/gitlab-org/gitlab-workhorse/internal/api"
......@@ -32,7 +31,7 @@ func handleUploadPack(w *GitHttpResponseWriter, r *http.Request, a *api.Response
}
defer remainder.Close()
body := ioutil.NopCloser(io.MultiReader(buffer, remainder))
body := io.MultiReader(buffer, remainder)
r.Body.Close()
action := getService(r)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment