1
0
mirror of https://github.com/go-task/task.git synced 2025-01-12 04:34:11 +02:00

Separate error handlings for readability

This commit is contained in:
Seiichi Uchida 2019-08-19 13:00:10 +09:00
parent 26e0c0887a
commit 0cb298ebdf

View File

@ -34,7 +34,10 @@ func (c *Checksum) IsUpToDate() (bool, error) {
}
generates, err := glob(c.Dir, c.Generates)
if err != nil || len(generates) == 0 {
if err != nil {
return false, err
}
if len(generates) == 0 {
return false, err
}
for _, generate := range generates {