aboutsummaryrefslogtreecommitdiff
path: root/Command/FromKey.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-11-11 01:52:58 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-11-11 01:52:58 -0400
commit637b5feb45013f69f3aacbafeb796de666d3faa3 (patch)
tree17e5506c3715be46318d15dd76ec474641faffe2 /Command/FromKey.hs
parentb327227ba596d4fc5012138d03390c3eb861b808 (diff)
lint
Diffstat (limited to 'Command/FromKey.hs')
-rw-r--r--Command/FromKey.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/FromKey.hs b/Command/FromKey.hs
index b910dd1f0..ec194e06e 100644
--- a/Command/FromKey.hs
+++ b/Command/FromKey.hs
@@ -22,7 +22,7 @@ seek = [withWords start]
start :: [String] -> CommandStart
start (keyname:file:[]) = notBareRepo $ do
- let key = maybe (error "bad key") id $ readKey keyname
+ let key = fromMaybe (error "bad key") $ readKey keyname
inbackend <- inAnnex key
unless inbackend $ error $
"key ("++ keyname ++") is not present in backend"