replace R.doesPathExist with doesPathExist
Equivilant, just avoids some ugliness.
This commit is contained in:
parent
5dbaaae299
commit
3bbabd6778
4 changed files with 8 additions and 9 deletions
|
@ -33,7 +33,6 @@ import Types.RepoVersion
|
|||
import qualified Database.Keys
|
||||
import Annex.InodeSentinal
|
||||
import Utility.InodeCache
|
||||
import qualified Utility.RawFilePath as R
|
||||
import qualified Git
|
||||
import Config
|
||||
|
||||
|
@ -43,7 +42,7 @@ import Annex.Perms
|
|||
|
||||
{- Checks if a given key's content is currently present. -}
|
||||
inAnnex :: Key -> Annex Bool
|
||||
inAnnex key = inAnnexCheck key $ liftIO . R.doesPathExist . fromOsPath
|
||||
inAnnex key = inAnnexCheck key $ liftIO . doesPathExist
|
||||
|
||||
{- Runs an arbitrary check on a key's content. -}
|
||||
inAnnexCheck :: Key -> (OsPath -> Annex Bool) -> Annex Bool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue