fix: revert wrong hlint suggestion
This commit is contained in:
parent
b222ceb40e
commit
ba2ed97731
@ -63,6 +63,7 @@ instance Button UniWorX ButtonAdminStudyTermsStandalone where
|
|||||||
btnClasses BtnStandaloneCandidatesDeleteAll = [BCIsButton, BCDanger]
|
btnClasses BtnStandaloneCandidatesDeleteAll = [BCIsButton, BCDanger]
|
||||||
|
|
||||||
|
|
||||||
|
{-# ANN postAdminFeaturesR ("HLint: ignore Redundant void" :: String) #-}
|
||||||
getAdminFeaturesR, postAdminFeaturesR :: Handler Html
|
getAdminFeaturesR, postAdminFeaturesR :: Handler Html
|
||||||
getAdminFeaturesR = postAdminFeaturesR
|
getAdminFeaturesR = postAdminFeaturesR
|
||||||
postAdminFeaturesR = do
|
postAdminFeaturesR = do
|
||||||
@ -231,7 +232,7 @@ postAdminFeaturesR = do
|
|||||||
forM_ schools $ \ssh -> void . insertUnique $ SchoolTerms ssh studyTermsKey
|
forM_ schools $ \ssh -> void . insertUnique $ SchoolTerms ssh studyTermsKey
|
||||||
deleteWhere [SchoolTermsTerms ==. studyTermsKey, SchoolTermsSchool /<-. Set.toList schools, SchoolTermsSchool <-. toListOf (folded . _entityKey) userSchools]
|
deleteWhere [SchoolTermsTerms ==. studyTermsKey, SchoolTermsSchool /<-. Set.toList schools, SchoolTermsSchool <-. toListOf (folded . _entityKey) userSchools]
|
||||||
|
|
||||||
forM_ parents $ insertUnique . StudySubTerms studyTermsKey
|
forM_ parents $ void . insertUnique . StudySubTerms studyTermsKey
|
||||||
deleteWhere [StudySubTermsChild ==. studyTermsKey, StudySubTermsParent /<-. Set.toList parents]
|
deleteWhere [StudySubTermsChild ==. studyTermsKey, StudySubTermsParent /<-. Set.toList parents]
|
||||||
formResult studyTermsResult' $ \res -> do
|
formResult studyTermsResult' $ \res -> do
|
||||||
void . runDB $ Map.traverseWithKey updateStudyTerms res
|
void . runDB $ Map.traverseWithKey updateStudyTerms res
|
||||||
|
|||||||
Reference in New Issue
Block a user