fix within func issue (#209)

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero 2022-07-05 16:50:43 +08:00 committed by GitHub
parent ae5e93d71d
commit 9b0293d9ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)