mirror of
https://github.com/octoleo/restic.git
synced 2024-11-29 16:23:59 +00:00
Fix error check for findGoFiles
This commit is contained in:
parent
fd6211653c
commit
02c8d38095
@ -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 New Issue
Block a user