aboutsummaryrefslogtreecommitdiff
path: root/Remote/BitTorrent.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-02-12 15:33:05 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-02-12 15:33:44 -0400
commit329267cb2b11da52956a86d9caec5225251a5ac1 (patch)
treead86509598b515ed0529afc9f02c8076311f0004 /Remote/BitTorrent.hs
parent15b68af5e7897d5747d21174ecaa682b69b90865 (diff)
avoid unncessary IO
Diffstat (limited to 'Remote/BitTorrent.hs')
-rw-r--r--Remote/BitTorrent.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Remote/BitTorrent.hs b/Remote/BitTorrent.hs
index 0ecf3ef25..fe49d023a 100644
--- a/Remote/BitTorrent.hs
+++ b/Remote/BitTorrent.hs
@@ -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)