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:
parent
26e0c0887a
commit
0cb298ebdf
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user