Skip to content

Commit

Permalink
Fixed a bug that caused extendPagesConcurrently to only return the …
Browse files Browse the repository at this point in the history
…initial page of results: Changed `if maxOffset >= minOffset` to `if minOffset >= maxOffset`.
  • Loading branch information
Peter-Schorn committed May 30, 2024
1 parent 9cc938b commit 39fd1be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SpotifyWebAPI/Other/MiscellaneousUtilities.swift
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public func generatePageOffsets<Page>(
maxOffset = absoluteMaxOffset
}

if maxOffset >= minOffset {
if minOffset >= maxOffset {
return []
}

Expand Down

0 comments on commit 39fd1be

Please sign in to comment.