diff --git a/pkg/neorpc/types.go b/pkg/neorpc/types.go index 8a2a24dd2..93e60e6a1 100644 --- a/pkg/neorpc/types.go +++ b/pkg/neorpc/types.go @@ -55,7 +55,7 @@ type ( Error *Error `json:"error,omitempty"` } - // Raw represents a standard raw JSON-RPC 2.0 + // Response represents a standard raw JSON-RPC 2.0 // response: http://www.jsonrpc.org/specification#response_object. Response struct { HeaderAndError diff --git a/pkg/rpcclient/invoker/doc_test.go b/pkg/rpcclient/invoker/doc_test.go index 37a718b35..28476b84f 100644 --- a/pkg/rpcclient/invoker/doc_test.go +++ b/pkg/rpcclient/invoker/doc_test.go @@ -34,7 +34,7 @@ func ExampleInvoker() { res, _ := inv.Call(neo.Hash, "transfer", acc, util.Uint160{1, 2, 3}, 1, nil) if res.State == vmstate.Halt.String() { panic("NEO is broken!") // inv has no signers and transfer requires a witness to be performed. - } else { // nolint:superfluous-else // superfluous-else: if block ends with call to panic function, so drop this else and outdent its block (revive) + } else { // nolint:revive // superfluous-else: if block ends with call to panic function, so drop this else and outdent its block (revive) println("ok") // this actually should fail }