Skip to content

Commit

Permalink
fix: linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wyattjoh committed Sep 28, 2022
1 parent c764414 commit a6c924e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions internal/image/provider/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bytes"
"context"
"io"
"io/ioutil"
"net/http"
"os"

Expand Down Expand Up @@ -74,5 +73,5 @@ func (s *S3) Provide(ctx context.Context, filename string) (io.ReadCloser, error
// The bytes buffer isn't a closer by nature, just wrap it with a no-op closer
// to satisfy the interface, it will be managed by the GC to clean up
// afterwards.
return ioutil.NopCloser(buf), nil
return io.NopCloser(buf), nil
}
2 changes: 1 addition & 1 deletion internal/platform/providers/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func GetProxyBackendProvider(ctx context.Context, originCache string) (provider.

// ParseBackend parses the backend using the following formats:
//
// <host>,<origin> OR <origin>
// <host>,<origin> OR <origin>
//
// Where if the host is not specified, it falls back to the defaultHost.
func ParseBackend(defaultHost, backend string) (string, string, error) {
Expand Down

0 comments on commit a6c924e

Please sign in to comment.