1
0
mirror of https://github.com/minio/mc.git synced 2025-11-10 13:42:32 +03:00

Add staticcheck to CI (#4386)

This commit is contained in:
Klaus Post
2022-12-05 17:32:04 +01:00
committed by GitHub
parent a55d40caf7
commit 52a931bfa7
46 changed files with 146 additions and 169 deletions

View File

@@ -25,7 +25,6 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"regexp"
@@ -323,7 +322,7 @@ func getCSVHeader(sourceURL string, encKeyDB map[string][]prefixSSEPair) ([]stri
defer r.Close()
} else if strings.Contains(ctype, "bzip") {
defer r.Close()
r = ioutil.NopCloser(bzip2.NewReader(r))
r = io.NopCloser(bzip2.NewReader(r))
} else {
defer r.Close()
}