forked from TrueCloudLab/restic
Fix error check for findGoFiles
This commit is contained in:
parent
fd6211653c
commit
02c8d38095
1 changed files with 4 additions and 0 deletions
|
@ -432,6 +432,10 @@ func (env *AppveyorEnvironment) Teardown() error {
|
||||||
// findGoFiles returns a list of go source code file names below dir.
|
// findGoFiles returns a list of go source code file names below dir.
|
||||||
func findGoFiles(dir string) (list []string, err error) {
|
func findGoFiles(dir string) (list []string, err error) {
|
||||||
err = filepath.Walk(dir, func(name string, fi os.FileInfo, err error) 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)
|
relpath, err := filepath.Rel(dir, name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue