Removeearly return statement

This commit is contained in:
Alfred Kamanda 2024-11-04 17:38:55 +03:00
parent e2b28a31b2
commit 92ea3df4aa
Signed by untrusted user: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -202,7 +202,6 @@ func doRequest(ctx context.Context, req *http.Request, rcpt any) (*api.OKRespons
if len(okResponse.Result) == 0 { if len(okResponse.Result) == 0 {
return nil, errors.New("Empty api result") return nil, errors.New("Empty api result")
} }
return &okResponse, nil
v, err := json.Marshal(okResponse.Result) v, err := json.Marshal(okResponse.Result)
if err != nil { if err != nil {