check config bugs

This commit is contained in:
2021-07-11 13:51:04 +02:00
parent c2e88193cd
commit a4b54f9f64
5 changed files with 11 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ func GetLocation(name string) (Location, bool) {
return l, ok
}
func (l Location) validate(c *Config) error {
func (l Location) validate() error {
if l.From == "" {
return fmt.Errorf(`Location "%s" is missing "from" key`, l.name)
}