1
0
mirror of https://github.com/go-task/task.git synced 2025-01-26 05:27:15 +02:00

Skip cleanup if task doesn't have any sources listed

Ref #333
This commit is contained in:
Andrey Nering 2020-05-31 15:48:23 -03:00
parent ee7f2a541f
commit f4f6efa547

View File

@ -95,6 +95,9 @@ func (c *Checksum) Value() (interface{}, error) {
// OnError implements the Checker interface
func (c *Checksum) OnError() error {
if len(c.Sources) == 0 {
return nil
}
return os.Remove(c.checksumFilePath())
}