Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'workhorse/internal/httprs/httprs.go')
-rw-r--r--workhorse/internal/httprs/httprs.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/workhorse/internal/httprs/httprs.go b/workhorse/internal/httprs/httprs.go
index a38230c1968..f7767d2ee28 100644
--- a/workhorse/internal/httprs/httprs.go
+++ b/workhorse/internal/httprs/httprs.go
@@ -20,7 +20,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"github.com/mitchellh/copystructure"
@@ -148,7 +147,7 @@ func (r *HttpReadSeeker) Seek(offset int64, whence int) (int64, error) {
if r.r != nil {
// Try to read, which is cheaper than doing a request
if r.pos < offset && offset-r.pos <= shortSeekBytes {
- _, err := io.CopyN(ioutil.Discard, r, offset-r.pos)
+ _, err := io.CopyN(io.Discard, r, offset-r.pos)
if err != nil {
return 0, err
}