Skip to content

Commit

Permalink
fix hlint suggestion in 'bech32' module
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed Jun 27, 2019
1 parent 4ce65e0 commit d3cfc6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bech32/src/Codec/Binary/Bech32/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ locateErrors residue len
let p1 = (l_s1 - l_s0 + 1023) `mod` 1023 in
if (p1 >= len) then [] else
let l_e1 = l_s0 + (1023 - 997) * p1 in
if (l_e1 `mod` 33 > 0) then [] else [p1]
[p1 | l_e1 `mod` 33 <= 0]
| otherwise =
case filter (not . null) $ map findError [0 .. len - 1] of
[] -> []
Expand Down

0 comments on commit d3cfc6c

Please sign in to comment.