From a913f1d459dd9c5c82237e5fd8919c8ce09d55f1 Mon Sep 17 00:00:00 2001 From: Jimmy Appelt Date: Fri, 6 Nov 2015 19:44:52 +0100 Subject: [PATCH] Added 3 compilebreakers on Todo Items --- SpotifyAPI/Web/SpotifyWebAPI.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SpotifyAPI/Web/SpotifyWebAPI.cs b/SpotifyAPI/Web/SpotifyWebAPI.cs index f82c167c..30f55096 100644 --- a/SpotifyAPI/Web/SpotifyWebAPI.cs +++ b/SpotifyAPI/Web/SpotifyWebAPI.cs @@ -638,6 +638,7 @@ namespace SpotifyAPI.Web if (!UseAuth) throw new InvalidOperationException("Auth is required for IsFollowing"); JToken res = DownloadDataAsync(_builder.IsFollowing(followType, ids)); +# Compilebreaker if (res is JArray) //todo expression is always false return Task.FromResult(new ListResponse { List = res.ToObject>(), Error = null }); return Task.FromResult(new ListResponse { List = null, Error = res["error"].ToObject() }); @@ -768,6 +769,7 @@ namespace SpotifyAPI.Web if (!UseAuth) throw new InvalidOperationException("Auth is required for IsFollowingPlaylist"); JToken res = DownloadDataAsync(_builder.IsFollowingPlaylist(ownerId, playlistId, ids)); +# Compilebreaker if (res is JArray) //todo expression is always false return Task.FromResult(new ListResponse { List = res.ToObject>(), Error = null }); return Task.FromResult(new ListResponse { List = null, Error = res["error"].ToObject() }); @@ -930,6 +932,7 @@ namespace SpotifyAPI.Web if (!UseAuth) throw new InvalidOperationException("Auth is required for CheckSavedTracks"); JToken res = DownloadDataAsync(_builder.CheckSavedTracks(ids)); +# Compilebreaker if (res is JArray) //todo expression is always false return Task.FromResult(new ListResponse { List = res.ToObject>(), Error = null }); return Task.FromResult(new ListResponse { List = null, Error = res["error"].ToObject() });