Skip to content

Commit 611d0ab

Browse files
committed
market should be null by default
Signed-off-by: Adam Ratzman <adam@adamratzman.com>
1 parent 95bcbcb commit 611d0ab

File tree

6 files changed

+4
-18
lines changed

6 files changed

+4
-18
lines changed

.idea/gradle.xml

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules/SpotifyKotlinWrapper.iml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules/SpotifyKotlinWrapper_main.iml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules/SpotifyKotlinWrapper_test.iml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/kotlin/com/adamratzman/spotify/endpoints/pub/artists/ArtistsAPI.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ArtistsAPI(api: SpotifyAPI) : SpotifyEndpoint(api) {
4343
*
4444
* @throws BadRequestException if [artistId] is not found, or filter parameters are illegal
4545
*/
46-
fun getArtistAlbums(artistId: String, market: Market?, limit: Int = 20, offset: Int = 0, vararg include: AlbumInclusionStrategy): SpotifyRestAction<LinkedResult<SimpleAlbum>> {
46+
fun getArtistAlbums(artistId: String, market: Market? = null, limit: Int = 20, offset: Int = 0, vararg include: AlbumInclusionStrategy): SpotifyRestAction<LinkedResult<SimpleAlbum>> {
4747
return toAction(Supplier {
4848
get("https://api.spotify.com/v1/artists/${artistId.encode()}/albums?limit=$limit&offset=$offset" +
4949
if (market != null) "&market=${market.code}" else "" +

0 commit comments

Comments
 (0)