renamed sym to symbol to avoid confusion

This commit is contained in:
Alfred Kamanda 2024-10-03 11:53:46 +03:00
parent 59aa4eae77
commit c965d3083d
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -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"