Merge pull request #2108 from rrylee/remove_dup_code

remove dup code when judge filesystem target isFS
This commit is contained in:
Vasek - Tom C 2022-04-11 15:43:24 +02:00 committed by GitHub
commit 03829e907f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ func (t clientFilesystemReadTask) PreRun(_ context.Context, pctx *plancontext.Co
return fmt.Errorf("path %q cannot be stat'd: %w", path, err)
}
if plancontext.IsFSValue(v.Lookup("contents")) {
if isFS {
pctx.LocalDirs.Add(path)
}