From 8cb9381befed4174624edfc80e09185c9340b4f6 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 10 Mar 2017 13:12:24 -0400 Subject: AssociatedFile newtype To prevent any further mistakes like 1a497cefb47557f0b4788c606f9071be422b2511 This commit was sponsored by Francois Marier on Patreon. --- Command/DropUnused.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Command/DropUnused.hs') diff --git a/Command/DropUnused.hs b/Command/DropUnused.hs index edc11ea45..840a8a472 100644 --- a/Command/DropUnused.hs +++ b/Command/DropUnused.hs @@ -46,9 +46,9 @@ perform :: Maybe Remote -> NumCopies -> Key -> CommandPerform perform from numcopies key = case from of Just r -> do showAction $ "from " ++ Remote.name r - Command.Drop.performRemote key Nothing numcopies r + Command.Drop.performRemote key (AssociatedFile Nothing) numcopies r Nothing -> ifM (inAnnex key) - ( Command.Drop.performLocal key Nothing numcopies [] + ( Command.Drop.performLocal key (AssociatedFile Nothing) numcopies [] , next (return True) ) -- cgit v1.2.3