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 Jun 8, 2024
1 parent 9cc938b commit d367f60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.0.2] - 6-07-2024

* Fixed a bug that caused `extendPagesConcurrently` to only return the initial page of results

## [3.0.1] - 5-25-2024

* Fixed a bug that causes a runtime crash in `extendPagesConcurrently` when the "limit" property of the Paginig Object is 0.
Expand Down
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 d367f60

Please sign in to comment.