avoid compiler warning

add type sig so it's clear createtfile returns unit
This commit is contained in:
Joey Hess 2018-03-15 13:20:38 -04:00
parent e242fde6d2
commit ed81762c86
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 2 additions and 1 deletions

View file

@ -6,6 +6,7 @@
-}
module Annex.Perms (
FileMode,
setAnnexFilePerm,
setAnnexDirPerm,
annexFileMode,

View file

@ -88,6 +88,7 @@ runTransfer' ignorelock t afile shouldretry transferaction = checkSecureHashes t
else recordFailedTransfer t info
return v
where
prep :: FilePath -> Annex () -> FileMode -> Annex (Maybe LockHandle, Bool)
#ifndef mingw32_HOST_OS
prep tfile createtfile mode = catchPermissionDenied (const prepfailed) $ do
let lck = transferLockFile tfile

View file

@ -15,7 +15,6 @@ import Annex.Version
import Annex.Link
import Annex.ReplaceFile
import Utility.CopyFile
import Utility.FileMode
import Git.FilePath
import qualified Database.Keys