Small cleanups, no change in exec.

This commit is contained in:
Jeffrey Regan
2019-01-14 15:35:03 -08:00
parent 73624da253
commit ea1dd08a8c
5 changed files with 41 additions and 26 deletions

View File

@@ -102,6 +102,11 @@ func (fs *fakeFs) Open(name string) (File, error) {
return fs.m[name], nil
}
// EvalSymlinks does nothing and cannot fail.
func (fs *fakeFs) EvalSymlinks(path string) (string, error) {
return path, nil
}
// Exists returns true if file is known.
func (fs *fakeFs) Exists(name string) bool {
_, found := fs.m[name]