Skip to content

Commit

Permalink
fix within func issue (#209)
Browse files Browse the repository at this point in the history
Signed-off-by: yxxhero <aiopsclub@163.com>
  • Loading branch information
yxxhero committed Jul 5, 2022
1 parent ae5e93d commit 9b0293d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ func (a *App) visitStateFiles(fileOrDir string, opts LoadOpts, do func(string, s
return errAbsDir
}
err := a.within(absd, func() error {
return do(file, dir)
return do(file, absd)
})
if err != nil {
return appError(fmt.Sprintf("in %s/%s", dir, file), err)
Expand Down

0 comments on commit 9b0293d

Please sign in to comment.