Fix issues reported by errcheck

This commit is contained in:
Julien Laffaye
2021-03-06 19:36:26 -05:00
parent 52feea7744
commit 05cd33e2ad
3 changed files with 53 additions and 22 deletions

View File

@@ -63,7 +63,9 @@ func parseRFC3659ListLine(line string, now time.Time, loc *time.Location) (*Entr
e.Type = EntryTypeFile
}
case "size":
e.setSize(value)
if err := e.setSize(value); err != nil {
return nil, err
}
}
}
return e, nil