From dc8e898f0806660ef2e2a46ad65469bf5482f49a Mon Sep 17 00:00:00 2001 From: Marko Bencun Date: Wed, 22 Nov 2023 13:57:00 +0100 Subject: [PATCH] backend/handlers: use getAPIRouterNoError for cancelConnectKeystore --- backend/handlers/handlers.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/handlers/handlers.go b/backend/handlers/handlers.go index 1072186ddc..fc383e644a 100644 --- a/backend/handlers/handlers.go +++ b/backend/handlers/handlers.go @@ -234,7 +234,7 @@ func NewHandlers( getAPIRouterNoError(apiRouter)("/aopp/cancel", handlers.postAOPPCancelHandler).Methods("POST") getAPIRouterNoError(apiRouter)("/aopp/approve", handlers.postAOPPApproveHandler).Methods("POST") getAPIRouter(apiRouter)("/aopp/choose-account", handlers.postAOPPChooseAccountHandler).Methods("POST") - getAPIRouter(apiRouter)("/cancel-connect-keystore", handlers.postCancelConnectKeystoreHandler).Methods("POST") + getAPIRouterNoError(apiRouter)("/cancel-connect-keystore", handlers.postCancelConnectKeystoreHandler).Methods("POST") getAPIRouterNoError(apiRouter)("/set-watchonly", handlers.postSetWatchonlyHandler).Methods("POST") devicesRouter := getAPIRouterNoError(apiRouter.PathPrefix("/devices").Subrouter()) @@ -1286,9 +1286,9 @@ func (handlers *Handlers) postAOPPApproveHandler(r *http.Request) interface{} { return nil } -func (handlers *Handlers) postCancelConnectKeystoreHandler(r *http.Request) (interface{}, error) { +func (handlers *Handlers) postCancelConnectKeystoreHandler(r *http.Request) interface{} { handlers.backend.CancelConnectKeystore() - return nil, nil + return nil } func (handlers *Handlers) postSetWatchonlyHandler(r *http.Request) interface{} {