Corrected syntax mistake in SaveTracksAsync method

This commit is contained in:
Jimmy Appelt 2015-11-06 15:21:04 +01:00
parent ab05201bd2
commit 9bb25a8160

View File

@ -824,7 +824,7 @@ namespace SpotifyAPI.Web
public Task<ErrorResponse> SaveTracksAsync(List<String> ids) public Task<ErrorResponse> SaveTracksAsync(List<String> ids)
{ {
JArray array = new JArray(ids); JArray array = new JArray(ids);
return UploadDataAsync<ErrorResponse>(_builder.SearchItems(array.ToString(Formatting.None)), "PUT") ?? Task.FromResult(new ErrorResponse()); return UploadDataAsync<ErrorResponse>(_builder.SearchItems(array.ToString(Formatting.None), "PUT") ?? Task.FromResult(new ErrorResponse()));
} }
/// <summary> /// <summary>