fix warning
This commit is contained in:
parent
262c37c16e
commit
c670a0642c
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ checkLocked lockfile = conv <$> getLockStatus lockfile
|
||||||
-- Checks that the lock file still exists, and is the same file that was
|
-- Checks that the lock file still exists, and is the same file that was
|
||||||
-- locked to get the LockHandle.
|
-- locked to get the LockHandle.
|
||||||
checkSaneLock :: LockFile -> LockHandle -> IO Bool
|
checkSaneLock :: LockFile -> LockHandle -> IO Bool
|
||||||
checkSaneLock lockfile (LockHandle f st _) =
|
checkSaneLock lockfile (LockHandle _ st _) =
|
||||||
go =<< catchMaybeIO (getFileStatus lockfile)
|
go =<< catchMaybeIO (getFileStatus lockfile)
|
||||||
where
|
where
|
||||||
go Nothing = return False
|
go Nothing = return False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue