From 10f4bcdc67cb816501eb8c71e668b499b6bf85f5 Mon Sep 17 00:00:00 2001 From: Marcos Lilljedahl Date: Tue, 25 Apr 2023 01:24:00 -0300 Subject: [PATCH] make linter happy Signed-off-by: Marcos Lilljedahl --- pkg/assets/assets.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/assets/assets.go b/pkg/assets/assets.go index d114d85..82c08a4 100644 --- a/pkg/assets/assets.go +++ b/pkg/assets/assets.go @@ -7,7 +7,6 @@ import ( "compress/gzip" "fmt" "io" - "io/ioutil" "net/http" "path/filepath" "sort" @@ -367,7 +366,7 @@ func (f *Filter) processTar(name string, r io.Reader) (*finalFile, error) { // isn't there a way just to store the reference // where this data is so we don't have to do this or // re-scan the archive twice afterwards? - bs, err := ioutil.ReadAll(tr) + bs, err := io.ReadAll(tr) if err != nil { return nil, err } @@ -433,7 +432,7 @@ func (f *Filter) processZip(name string, r io.Reader) (*finalFile, error) { // isn't there a way just to store the reference // where this data is so we don't have to do this or // re-scan the archive twice afterwards? - bs, err := ioutil.ReadAll(zr) + bs, err := io.ReadAll(zr) if err != nil { return nil, err }