Merge pull request #2108 from rrylee/remove_dup_code
remove dup code when judge filesystem target isFS
This commit is contained in:
commit
03829e907f
@ -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)
|
return fmt.Errorf("path %q cannot be stat'd: %w", path, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if plancontext.IsFSValue(v.Lookup("contents")) {
|
if isFS {
|
||||||
pctx.LocalDirs.Add(path)
|
pctx.LocalDirs.Add(path)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user