mirror of
https://github.com/go-task/task.git
synced 2025-01-26 05:27:15 +02:00
parent
ee7f2a541f
commit
f4f6efa547
@ -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())
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user