summaryrefslogtreecommitdiff
path: root/LocationLog.hs
diff options
context:
space:
mode:
Diffstat (limited to 'LocationLog.hs')
-rw-r--r--LocationLog.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/LocationLog.hs b/LocationLog.hs
index e0ccb642b..6759b47fe 100644
--- a/LocationLog.hs
+++ b/LocationLog.hs
@@ -71,9 +71,7 @@ instance Read LogLine where
-- Such lines have a status of Undefined.
readsPrec _ string =
if length w == 3
- then case pdate of
- Just v -> good v
- Nothing -> bad
+ then maybe bad good pdate
else bad
where
w = words string