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() });