Skip to content

Commit

Permalink
Replace forM_ with mapM
Browse files Browse the repository at this point in the history
Co-authored-by: Mateusz Galazyn <228866+carbolymer@users.noreply.github.com>
  • Loading branch information
palas and carbolymer committed Nov 14, 2024
1 parent c5a74fe commit 6d4ba3b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cardano-cli/src/Cardano/CLI/EraBased/Transaction/HashCheck.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,8 @@ checkVotingProcedureHashes eon (Shelley.VotingProcedures (L.VotingProcedures vot
Shelley.shelleyBasedEraConstraints eon $
forM_
voterMap
( \vpMap ->
forM_
vpMap
( \(L.VotingProcedure _ mAnchor) ->
forM_ mAnchor checkAnchorMetadataHash
)
( mapM $ \(L.VotingProcedure _ mAnchor) ->
forM_ mAnchor checkAnchorMetadataHash
)

-- | Find references to anchor data in proposals and check the hashes are valid
Expand Down

0 comments on commit 6d4ba3b

Please sign in to comment.