aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTeddy Wing2017-08-11 00:04:05 +0200
committerTeddy Wing2017-08-11 00:04:05 +0200
commiteca3a0e78e20258bd165053e7832a0490432c59a (patch)
treef96f84124defe46e2898278284ccf1cb171b2b7b /src
parentccf11b5467b2f41690390a20bc50a02c006be3f0 (diff)
downloadsorbot-eca3a0e78e20258bd165053e7832a0490432c59a.tar.bz2
Lib.hs: Move `putStrLn` outside the `case` statement
It's duplicated so I figured I'd take it out.
Diffstat (limited to 'src')
-rw-r--r--src/Lib.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Lib.hs b/src/Lib.hs
index f8745b2..a6ea8c0 100644
--- a/src/Lib.hs
+++ b/src/Lib.hs
@@ -17,7 +17,7 @@ someFunc = do
Just plugin = matchPlugin message
dbConn <- open "db/sorbot_development.sqlite3"
response <- performPlugin plugin message dbConn
- case response of
- Left e -> putStrLn e
- Right r -> putStrLn r
+ putStrLn $ case response of
+ Left e -> e
+ Right r -> r
close dbConn