removed initial call to dump() when watching file

This commit is contained in:
Aurelien Derouineau 2019-06-17 19:34:40 +00:00
parent 28e4c55785
commit 61fef7f632

View File

@ -16,15 +16,11 @@ import (
// Dump Dumps "acme.json" file to certificates.
func Dump(acmeFile string, baseConfig *dumper.BaseConfig) error {
err := dump(acmeFile, baseConfig)
if err != nil {
return err
}
if baseConfig.Watch {
return watch(acmeFile, baseConfig)
}
return nil
return dump(acmeFile, baseConfig)
}
func dump(acmeFile string, baseConfig *dumper.BaseConfig) error {