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
@ -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