Skip to content

Commit b1ab3ad

Browse files
committed
Clean up syntax a little
1 parent 748f924 commit b1ab3ad

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/Backdraft/Container/UI.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ ui = H.lifecycleParentComponent { initialState, render, eval, initializer, final
4444
user <- lift $ onAuthChange
4545
H.put Loading
4646
case user of
47-
Just _ -> H.put Authenticated
48-
Nothing -> H.put NotAuthenticated
47+
Just _ -> H.put Authenticated
48+
Nothing -> H.put NotAuthenticated
4949
pure next
5050

5151
initializer = Just $ H.action Init

src/Firebase/Authentication/Aff.purs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ onAuthStateChanged
2121
:: forall eff
2222
. Firebase
2323
-> Aff ( firebase :: FIREBASE | eff ) (Maybe User)
24-
2524
onAuthStateChanged fb = makeAff (\eb cb -> onAuthStateChangedImpl Just Nothing fb cb eb)
2625

2726
foreign import signInWithPopupImpl

src/Firebase/DSL/Interpret/Firebase.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ runFirebaseDSLF fb (Logout a) = do
2828
signOut fb
2929
pure a
3030
runFirebaseDSLF fb (OnAuthChange a) = do
31-
user <- (onAuthStateChanged fb)
32-
pure $ (a user)
31+
user <- onAuthStateChanged fb
32+
pure $ a user

0 commit comments

Comments
 (0)