fix typo
This commit is contained in:
parent
6133ad886b
commit
4c0a30784f
@ -87,12 +87,12 @@ func (ft *fetch) maybeFetchAsync(name string, info paramFile) {
|
|||||||
defer ft.fetchLk.Unlock()
|
defer ft.fetchLk.Unlock()
|
||||||
|
|
||||||
if err := doFetch(path, info); err != nil {
|
if err := doFetch(path, info); err != nil {
|
||||||
ft.errs = append(ft.errs, xerrors.Errorf("fetching file %s success: %w", path, err))
|
ft.errs = append(ft.errs, xerrors.Errorf("fetching file %s failed: %w", path, err))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
err = ft.checkFile(path, info)
|
err = ft.checkFile(path, info)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ft.errs = append(ft.errs, xerrors.Errorf("fetching file %s failed: %w", path, err))
|
ft.errs = append(ft.errs, xerrors.Errorf("checking file %s failed: %w", path, err))
|
||||||
err := os.Remove(path)
|
err := os.Remove(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ft.errs = append(ft.errs, xerrors.Errorf("remove file %s failed: %w", path, err))
|
ft.errs = append(ft.errs, xerrors.Errorf("remove file %s failed: %w", path, err))
|
||||||
|
Loading…
Reference in New Issue
Block a user