mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
build: address nolintlint
errors from new golangci-lint
Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
committed by
mergify[bot]
parent
5913ed92fe
commit
81218a69f9
@ -73,7 +73,7 @@ func (cp *ConnPool) fakeGet(monitors, user, keyfile string) (*rados.Conn, string
|
||||
return conn, unique, nil
|
||||
}
|
||||
|
||||
// nolint:paralleltest // these tests cannot run in parallel
|
||||
//nolint:paralleltest // these tests cannot run in parallel
|
||||
func TestConnPool(t *testing.T) {
|
||||
cp := NewConnPool(interval, expiry)
|
||||
defer cp.Destroy()
|
||||
|
@ -67,7 +67,7 @@ type ClusterInfo struct {
|
||||
}
|
||||
|
||||
// Expected JSON structure in the passed in config file is,
|
||||
// nolint:godot // example json content should not contain unwanted dot.
|
||||
//nolint:godot // example json content should not contain unwanted dot.
|
||||
/*
|
||||
[{
|
||||
"clusterID": "<cluster-id>",
|
||||
|
@ -70,7 +70,7 @@ func TryRADOSAborted(opErr error) error {
|
||||
return opErr
|
||||
}
|
||||
|
||||
// nolint:errorlint // Can't use errors.As() because rados.radosError is private.
|
||||
//nolint:errorlint // Can't use errors.As() because rados.radosError is private.
|
||||
errnoErr, ok := radosOpErr.OpError.(interface{ ErrorCode() int })
|
||||
if !ok {
|
||||
return opErr
|
||||
|
@ -54,7 +54,7 @@ func FromBytes(bs []byte) (RefType, error) {
|
||||
}
|
||||
|
||||
num := RefType(bs[0])
|
||||
switch num { // nolint:exhaustive // reftype.Unknown is handled in default case.
|
||||
switch num { //nolint:exhaustive // reftype.Unknown is handled in default case.
|
||||
case Normal, Mask:
|
||||
return num, nil
|
||||
default:
|
||||
|
Reference in New Issue
Block a user