[#1687] *: Perform go fmt using go v1.19

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-08-15 19:20:20 +03:00 committed by Pavel Karpy
parent 37ab26bfa9
commit 30341f2192
25 changed files with 114 additions and 112 deletions

View file

@ -231,8 +231,8 @@ func setStatusV2(resp ResponseMessage, err error) {
// signs response with private key via signature.SignServiceMessage.
// The signature error affects the result depending on the protocol version:
// * if status return is supported, panics since we cannot return the failed status, because it will not be signed;
// * otherwise, returns error in order to transport it directly.
// - if status return is supported, panics since we cannot return the failed status, because it will not be signed;
// - otherwise, returns error in order to transport it directly.
func signResponse(key *ecdsa.PrivateKey, resp interface{}, statusSupported bool) error {
err := signature.SignServiceMessage(key, resp)
if err != nil {