avoid unncessary IO

This commit is contained in:
Joey Hess 2015-02-12 15:33:05 -04:00
parent ecf7ef3ff2
commit 52e40970c8
6 changed files with 15 additions and 17 deletions

View file

@ -44,7 +44,7 @@ remote = RemoteType {
-- There is only one bittorrent remote, and it always exists.
list :: Annex [Git.Repo]
list = do
r <- liftIO $ Git.Construct.remoteNamed "bittorrent" Git.Construct.fromUnknown
r <- liftIO $ Git.Construct.remoteNamed "bittorrent" (pure Git.Construct.fromUnknown)
return [r]
gen :: Git.Repo -> UUID -> RemoteConfig -> RemoteGitConfig -> Annex (Maybe Remote)