Skip to content

Commit f1cfd02

Browse files
Fix warnings revealed by v0.14.1 PS release (#213)
1 parent 5b71501 commit f1cfd02

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ New features:
1111
Bugfixes:
1212

1313
Other improvements:
14+
- Fix warnings revealed by `v0.14.1` PS release (#213)
1415

1516
## [v6.0.0](https://github.com/purescript/purescript-arrays/releases/tag/v6.0.0) - 2021-02-26
1617

src/Data/Array.purs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ nubBy comp xs = case head indexedAndSorted of
10521052
Just x -> map snd $ sortWith fst $ ST.run do
10531053
-- TODO: use NonEmptyArrays here to avoid partial functions
10541054
result <- STA.unsafeThaw $ singleton x
1055-
ST.foreach indexedAndSorted \pair@(Tuple i x') -> do
1055+
ST.foreach indexedAndSorted \pair@(Tuple _ x') -> do
10561056
lst <- snd <<< unsafePartial (fromJust <<< last) <$> STA.unsafeFreeze result
10571057
when (comp lst x' /= EQ) $ void $ STA.push pair result
10581058
STA.unsafeFreeze result

0 commit comments

Comments
 (0)