2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-26 06:46:34 +00:00

Fix error check for findGoFiles

This commit is contained in:
Alexander Neumann 2019-11-22 12:20:27 +01:00
parent fd6211653c
commit 02c8d38095

View File

@ -432,6 +432,10 @@ func (env *AppveyorEnvironment) Teardown() error {
// findGoFiles returns a list of go source code file names below dir.
func findGoFiles(dir string) (list []string, err error) {
err = filepath.Walk(dir, func(name string, fi os.FileInfo, err error) error {
if err != nil {
return err
}
relpath, err := filepath.Rel(dir, name)
if err != nil {
return err