From 39fd1be211ff355ee29b67abcdacf38b45da57d8 Mon Sep 17 00:00:00 2001 From: Peter Schorn Date: Thu, 30 May 2024 10:37:33 -0500 Subject: [PATCH] Fixed a bug that caused `extendPagesConcurrently` to only return the initial page of results: Changed `if maxOffset >= minOffset` to `if minOffset >= maxOffset`. --- Sources/SpotifyWebAPI/Other/MiscellaneousUtilities.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SpotifyWebAPI/Other/MiscellaneousUtilities.swift b/Sources/SpotifyWebAPI/Other/MiscellaneousUtilities.swift index aaf99004..a9999efe 100644 --- a/Sources/SpotifyWebAPI/Other/MiscellaneousUtilities.swift +++ b/Sources/SpotifyWebAPI/Other/MiscellaneousUtilities.swift @@ -253,7 +253,7 @@ public func generatePageOffsets( maxOffset = absoluteMaxOffset } - if maxOffset >= minOffset { + if minOffset >= maxOffset { return [] }