From df0ca9f901223145ca1b7867a6dfd53e1f0e6a8b Mon Sep 17 00:00:00 2001 From: evgeniy-scherbina Date: Mon, 30 Sep 2024 13:02:48 -0400 Subject: [PATCH] fix: linter --- .golangci.yml | 2 ++ tests/rpc/utils.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 3f76d081a9..988fd8aeda 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -48,6 +48,8 @@ issues: - lll - path: rpc/websockets.go text: 'G114: Use of net/http serve function that has no support for setting timeouts' + exclude: + - "G115: integer overflow conversion" max-same-issues: 50 linters-settings: diff --git a/tests/rpc/utils.go b/tests/rpc/utils.go index 77539af10d..f1c5055c79 100644 --- a/tests/rpc/utils.go +++ b/tests/rpc/utils.go @@ -149,7 +149,7 @@ func CallWithError(method string, params interface{}) (*Response, error) { } if rpcRes.Error != nil { - return nil, fmt.Errorf(rpcRes.Error.Message) + return nil, errors.New(rpcRes.Error.Message) } return rpcRes, nil