diff --git a/cmd/vela-email/plugin.go b/cmd/vela-email/plugin.go index 3a772b8..c00f77c 100644 --- a/cmd/vela-email/plugin.go +++ b/cmd/vela-email/plugin.go @@ -79,6 +79,7 @@ func (p *Plugin) Validate() error { defer logrus.Trace("exited plugin.Validate") logrus.Info("Validating Parameters...") + if len(p.EmailFilename) != 0 { fileInfo, err := os.Stat(p.EmailFilename) if errors.Is(err, os.ErrNotExist) {