From 7db480af0f944ca0e6c062cd1243c63ad7f878d1 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 13 Dec 2012 00:45:27 -0400 Subject: whitespace fixes --- Command/Unlock.hs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Command/Unlock.hs') diff --git a/Command/Unlock.hs b/Command/Unlock.hs index 6489fc333..5a0e6efeb 100644 --- a/Command/Unlock.hs +++ b/Command/Unlock.hs @@ -39,12 +39,12 @@ perform dest key = do tmpdest <- fromRepo $ gitAnnexTmpLocation key liftIO $ createDirectoryIfMissing True (parentDir tmpdest) showAction "copying" - ok <- liftIO $ copyFileExternal src tmpdest - if ok - then do + ifM (liftIO $ copyFileExternal src tmpdest) + ( do liftIO $ do removeFile dest moveFile tmpdest dest thawContent dest next $ return True - else error "copy failed!" + , error "copy failed!" + ) -- cgit v1.2.3