diff options
author | 2012-01-06 04:02:35 -0400 | |
---|---|---|
committer | 2012-01-06 04:06:13 -0400 | |
commit | df21cbfdd2b7342c206ebd4aea32d989328374dc (patch) | |
tree | 24f6624e4e4c6dc06b53735bfb52973366e7b159 /Command/Unused.hs | |
parent | 0a36f92a31196451c2d838fd0ae15527e8bbce18 (diff) |
look up --to and --from remote names only once
This will speed up commands like move and drop.
Diffstat (limited to 'Command/Unused.hs')
-rw-r--r-- | Command/Unused.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Unused.hs b/Command/Unused.hs index 59efe64c8..a6883dce1 100644 --- a/Command/Unused.hs +++ b/Command/Unused.hs @@ -66,7 +66,7 @@ checkUnused = do checkRemoteUnused :: String -> CommandPerform checkRemoteUnused name = do - checkRemoteUnused' =<< Remote.byName name + checkRemoteUnused' =<< fromJust <$> Remote.byName (Just name) next $ return True checkRemoteUnused' :: Remote -> Annex () |