From 92e66ed4c3bfebe5ae2fa9a7a63b2a8dae5abe9f Mon Sep 17 00:00:00 2001 From: Jimmy Appelt Date: Fri, 6 Nov 2015 14:57:20 +0100 Subject: [PATCH] Removed parameter checks --- SpotifyAPI/Web/SpotifyWebAPI.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/SpotifyAPI/Web/SpotifyWebAPI.cs b/SpotifyAPI/Web/SpotifyWebAPI.cs index 900bff58..e4771f38 100644 --- a/SpotifyAPI/Web/SpotifyWebAPI.cs +++ b/SpotifyAPI/Web/SpotifyWebAPI.cs @@ -113,8 +113,6 @@ namespace SpotifyAPI.Web /// public FullAlbum GetAlbum(String id, String market = "") { - if (String.IsNullOrEmpty(market)) - return DownloadData(_builder.SearchItems(id)); return DownloadData(_builder.SearchItems(id, market)); } @@ -126,8 +124,6 @@ namespace SpotifyAPI.Web /// public Task GetAlbumAsync(String id, String market = "") { - if (String.IsNullOrEmpty(market)) - return DownloadDataAsync(_builder.SearchItems(id)); return DownloadDataAsync(_builder.SearchItems(id, market)); } @@ -139,8 +135,6 @@ namespace SpotifyAPI.Web /// public SeveralAlbums GetSeveralAlbums(List ids, String market = "") { - if (String.IsNullOrEmpty(market)) - return DownloadData(_builder.SearchItems(ids)); return DownloadData(_builder.SearchItems(ids, market)); } @@ -152,8 +146,6 @@ namespace SpotifyAPI.Web /// public Task GetSeveralAlbumsAsync(List ids, String market = "") { - if (String.IsNullOrEmpty(market)) - return DownloadDataAsync(_builder.SearchItems(ids)); return DownloadDataAsync(_builder.SearchItems(ids, market)); }