about summary refs log tree commit diff
path: root/src/Sessions.hs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-08-04T08·19+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-08-04T08·19+0100
commitee8e75231cd9d3d4aa3ffbbfa0e3b8511712e1ee (patch)
tree6264013fea0cfc8489f3d9f24cdc7ae1d63a9f50 /src/Sessions.hs
parent9a19942c037ec62700c41c235154ff38816c0a3a (diff)
Set -Wall and fix warnings
I think setting -Wall is a sensible default and @dmjio confirmed this. After
putting this in my project's .ghci file, a few dozen warnings emerged. This
commit changes the code that causes the warnings.
Diffstat (limited to 'src/Sessions.hs')
-rw-r--r--src/Sessions.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Sessions.hs b/src/Sessions.hs
index f5b2f6f41000..713059a38383 100644
--- a/src/Sessions.hs
+++ b/src/Sessions.hs
@@ -58,7 +58,7 @@ delete dbFile uuid = withConnection dbFile $ \conn ->
 -- | Find or create a session in the Sessions table. If a session exists,
 -- refresh the token's validity.
 findOrCreate :: FilePath -> T.Account -> IO T.SessionUUID
-findOrCreate dbFile account = withConnection dbFile $ \conn ->
+findOrCreate dbFile account =
   let username = T.accountUsername account in do
     mSession <- find dbFile username
     case mSession of