move config validation into a separate function

This commit is contained in:
Willy Kloucek committed 2022-04-28 11:10:39 +02:00
1 parent df53c2a545
commit 3054875a05
64 files changed
+189 -101

No files matched your search

@@ -8,10 +8,8 @@ import (
func FullDefaultConfig() *config.Config {
cfg := DefaultConfig()
EnsureDefaults(cfg)
Sanitize(cfg)
return cfg
}
@@ -29,5 +29,9 @@ func ParseConfig(cfg *config.Config) error {
defaults.Sanitize(cfg)
return Validate(cfg)
}
func Validate(cfg *config.Config) error {
return nil
}