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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user