remove file if empty

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2019-10-13 01:15:17 +08:00
parent 5eb8b48ec3
commit 83561d842b
+3
View File
@@ -206,6 +206,9 @@ func (p *Plugin) Exec() error {
fmt.Println(p.Config.File)
fmt.Println(len(p.Config.File))
for _, f := range p.Config.File {
if f == "" {
continue
}
err := p.SendFile(f)
if err != nil {
return err