summaryrefslogtreecommitdiff
path: root/Backend.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Backend.hs')
-rw-r--r--Backend.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Backend.hs b/Backend.hs
index 9d1b0cdbe..a16dfab6a 100644
--- a/Backend.hs
+++ b/Backend.hs
@@ -102,7 +102,7 @@ lookupKey state backend file = do
k <- readFile (backendFile state backend file)
return $ chomp k
where
- chomp s = if (endswith s "\n")
+ chomp s = if (endswith "\n" s)
then (reverse . (drop 1) . reverse) s
else s