From 9d357b24c8e1bb20e99e79a8b834c9b25e81d1b7 Mon Sep 17 00:00:00 2001 From: Chris Done Date: Fri, 4 Mar 2016 15:10:57 +0100 Subject: [PATCH] Remove redundant check for /= . or .. --- src/Path.hs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Path.hs b/src/Path.hs index ed19c23..d30e9bb 100644 --- a/src/Path.hs +++ b/src/Path.hs @@ -134,7 +134,6 @@ parseAbsFile filepath = not ("~/" `isPrefixOf` filepath) && not (hasParentDir filepath) && not (null (normalizeFile filepath)) && - filepath /= "." && filepath /= ".." && FilePath.isValid filepath then return (Path (normalizeFile filepath)) else throwM (InvalidAbsFile filepath)