refactor: drop code dups (#234)

This commit is contained in:
Ettore Di Giacinto
2023-05-11 16:34:16 +02:00
committed by GitHub
parent 59e3c02002
commit 85f0f8227d
6 changed files with 182 additions and 476 deletions

View File

@@ -285,5 +285,10 @@ func readConfig(cm ConfigMerger, c *fiber.Ctx, loader *model.ModelLoader, debug
}
}
// Enforce debug flag if passed from CLI
if debug {
config.Debug = true
}
return config, input, nil
}