Skip to content

Commit

Permalink
fix: correct some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
saman2000hoseini committed Jan 6, 2025
1 parent 6bf464f commit 0dd9968
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions internal/handler/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0dd9968

Please sign in to comment.