From 0dd996809bd78aa2e186cade6f820b46c43cfe29 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 6 Jan 2025 17:55:48 +0330 Subject: [PATCH] fix: correct some issues --- internal/handler/config.go | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/internal/handler/config.go b/internal/handler/config.go index 5fa5723..7f10716 100644 --- a/internal/handler/config.go +++ b/internal/handler/config.go @@ -35,16 +35,12 @@ func (h *Config) Get(c echo.Context) error { func mergeMaps(cfg, engineCfg map[string]interface{}) map[string]interface{} { merged := make(map[string]interface{}) - if engineCfg != nil { - for k, v := range engineCfg { - merged[k] = v - } + for k, v := range engineCfg { + merged[k] = v } - if cfg != nil { - for k, v := range cfg { - merged[k] = v - } + for k, v := range cfg { + merged[k] = v } return merged