added ifM and nuked 11 lines of code
no behavior changes
This commit is contained in:
parent
a4f72c9625
commit
60ab3d84e1
17 changed files with 151 additions and 162 deletions
|
@ -85,8 +85,9 @@ cleanup file key hascontent = do
|
|||
mtime <- modificationTime <$> getFileStatus file
|
||||
touch file (TimeSpec mtime) False
|
||||
|
||||
force <- Annex.getState Annex.force
|
||||
if force
|
||||
then Annex.Queue.add "add" [Param "-f", Param "--"] [file]
|
||||
else Annex.Queue.add "add" [Param "--"] [file]
|
||||
params <- ifM (Annex.getState Annex.force)
|
||||
( return [Param "-f"]
|
||||
, return []
|
||||
)
|
||||
Annex.Queue.add "add" (params++[Param "--"]) [file]
|
||||
return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue