Skip to content

Commit a6c924e

Browse files
committed
fix: linting fixes
1 parent c764414 commit a6c924e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

internal/image/provider/s3.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"bytes"
55
"context"
66
"io"
7-
"io/ioutil"
87
"net/http"
98
"os"
109

@@ -74,5 +73,5 @@ func (s *S3) Provide(ctx context.Context, filename string) (io.ReadCloser, error
7473
// The bytes buffer isn't a closer by nature, just wrap it with a no-op closer
7574
// to satisfy the interface, it will be managed by the GC to clean up
7675
// afterwards.
77-
return ioutil.NopCloser(buf), nil
76+
return io.NopCloser(buf), nil
7877
}

internal/platform/providers/providers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func GetProxyBackendProvider(ctx context.Context, originCache string) (provider.
140140

141141
// ParseBackend parses the backend using the following formats:
142142
//
143-
// <host>,<origin> OR <origin>
143+
// <host>,<origin> OR <origin>
144144
//
145145
// Where if the host is not specified, it falls back to the defaultHost.
146146
func ParseBackend(defaultHost, backend string) (string, string, error) {

0 commit comments

Comments
 (0)