build: address nolintlint errors from new golangci-lint

Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
Niels de Vos
2023-06-02 10:59:52 +02:00
committed by mergify[bot]
parent 5913ed92fe
commit 81218a69f9
30 changed files with 43 additions and 43 deletions

View File

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

View File

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