refactor: hlint

This commit is contained in:
Gregor Kleen 2020-01-30 17:38:01 +01:00
parent a91fd7fd63
commit e2c664d7d4

View File

@ -103,9 +103,7 @@ postEAutoOccurrenceR tid ssh csh examn = do
nudgeRes <- sequence . flip Map.fromSet (setOf (folded . _entityKey) occurrences) $ \occId ->
runFormPost $ examAutoOccurrenceNudgeForm occId (formResult' calculateRes)
let calculateRes' = asum $
[ calculateRes
] ++ toListOf (folded . _1 . _1) nudgeRes
let calculateRes' = asum $ calculateRes : nudgeRes ^.. folded . _1 . _1
calcResult <- formResultMaybe calculateRes' $ \ExamAutoOccurrenceCalculateForm{..} -> runDB $ do
participants <- E.select . E.from $ \(registration `E.InnerJoin` user) -> do