convert isPointerFile from Annex to IO
This commit is contained in:
parent
00f0411d12
commit
a2c056df65
4 changed files with 5 additions and 5 deletions
|
@ -153,6 +153,6 @@ formatPointer k =
|
|||
toInternalGitPath (pathSeparator:objectDir </> key2file k) ++ "\n"
|
||||
|
||||
{- Checks if a file is a pointer to a key. -}
|
||||
isPointerFile :: FilePath -> Annex (Maybe Key)
|
||||
isPointerFile f = liftIO $ catchDefaultIO Nothing $
|
||||
isPointerFile :: FilePath -> IO (Maybe Key)
|
||||
isPointerFile f = catchDefaultIO Nothing $
|
||||
parseLinkOrPointer <$> L.readFile f
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue