diff --git a/check.go b/check.go index 65e1128..876c64c 100644 --- a/check.go +++ b/check.go @@ -50,8 +50,7 @@ func Check(root string, dh *DirectoryHierarchy, keywords []string) (*Result, err creator.curSet = nil } case RelativeType, FullType: - filename := filepath.Join(root, e.Path()) - info, err := os.Lstat(filename) + info, err := os.Lstat(e.Path()) if err != nil { return nil, err }