Skip to content

Commit

Permalink
fix: hlint warning on using maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
MSzalowski committed Oct 24, 2024
1 parent 21e304d commit 894a05a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion govtool/backend/src/VVA/Proposal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ getProposals ::
(Has ConnectionPool r, Has VVAConfig r, MonadReader r m, MonadIO m, MonadFail m, MonadError AppError m) =>
Maybe [Text] -> m [Proposal]
getProposals mSearchTerms = withPool $ \conn -> do
let searchParam = fromMaybe "" (fmap head mSearchTerms)
let searchParam = maybe "" head mSearchTerms
liftIO $ SQL.query conn listProposalsSql
( searchParam
, "%" <> searchParam <> "%"
Expand Down

0 comments on commit 894a05a

Please sign in to comment.