From 4c3f63a48fb733c2b479668888754638976cd10f Mon Sep 17 00:00:00 2001 From: Carlosokumu Date: Sat, 7 Sep 2024 10:36:00 +0300 Subject: [PATCH] create an account only if not found in gdbm --- internal/handlers/ussd/menuhandler.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/internal/handlers/ussd/menuhandler.go b/internal/handlers/ussd/menuhandler.go index c94a57c..89fc6c6 100644 --- a/internal/handlers/ussd/menuhandler.go +++ b/internal/handlers/ussd/menuhandler.go @@ -177,12 +177,7 @@ func (h *Handlers) CreateAccount(ctx context.Context, sym string, input []byte) if err != nil { return res, err } - } else { - err = h.createAccountNoExist(ctx, sessionId, &res) - if err != nil { - return res, err - } - } + } } return res, nil }