From c965d3083d251cdbaae07a57dfa7571fd9a4e7e5 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Thu, 3 Oct 2024 11:53:46 +0300 Subject: [PATCH] renamed sym to symbol to avoid confusion --- internal/handlers/ussd/menuhandler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/handlers/ussd/menuhandler.go b/internal/handlers/ussd/menuhandler.go index 0e40cb5..4fc6dbb 100644 --- a/internal/handlers/ussd/menuhandler.go +++ b/internal/handlers/ussd/menuhandler.go @@ -117,9 +117,9 @@ func (h *Handlers) Init(ctx context.Context, sym string, input []byte) (resource func (h *Handlers) SetLanguage(ctx context.Context, sym string, input []byte) (resource.Result, error) { var res resource.Result - sym, _ = h.st.Where() + symbol, _ := h.st.Where() - switch sym { + switch symbol { case "set_default": res.FlagSet = append(res.FlagSet, state.FLAG_LANG) res.Content = "eng"