avoid compiler warning
add type sig so it's clear createtfile returns unit
This commit is contained in:
parent
e242fde6d2
commit
ed81762c86
3 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
-}
|
||||
|
||||
module Annex.Perms (
|
||||
FileMode,
|
||||
setAnnexFilePerm,
|
||||
setAnnexDirPerm,
|
||||
annexFileMode,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue