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

Remove NopCloser

parent e122950d
...@@ -4,7 +4,6 @@ import ( ...@@ -4,7 +4,6 @@ import (
"bytes" "bytes"
"fmt" "fmt"
"io" "io"
"io/ioutil"
"net/http" "net/http"
"gitlab.com/gitlab-org/gitlab-workhorse/internal/api" "gitlab.com/gitlab-org/gitlab-workhorse/internal/api"
...@@ -32,7 +31,7 @@ func handleUploadPack(w *GitHttpResponseWriter, r *http.Request, a *api.Response ...@@ -32,7 +31,7 @@ func handleUploadPack(w *GitHttpResponseWriter, r *http.Request, a *api.Response
} }
defer remainder.Close() defer remainder.Close()
body := ioutil.NopCloser(io.MultiReader(buffer, remainder)) body := io.MultiReader(buffer, remainder)
r.Body.Close() r.Body.Close()
action := getService(r) 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