1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-16 00:00:05 +01:00

minor edits in testing code

This commit is contained in:
jgfrm 2017-02-06 18:35:55 +01:00
parent 9a5312a5de
commit 79d5736428
2 changed files with 8 additions and 2 deletions

View file

@ -34,10 +34,16 @@ func walkDir(dir string) <-chan *dirEntry {
return nil
}
link, err := nlink(info)
if err != nil {
fmt.Fprintf(os.Stderr, "error: %v\n", err)
return nil
}
ch <- &dirEntry{
path: name,
fi: info,
link: nlink(info),
link: link,
}
return nil

View file

@ -27,5 +27,5 @@ func (e *dirEntry) equals(other *dirEntry) bool {
}
func nlink(info os.FileInfo) (uint64, error) {
return 1, err
return 1, nil
}