mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 14:46:26 +00:00
fix null checks and duplicate EOL
This commit is contained in:
parent
d5059820b6
commit
dcec5467a8
@ -19,6 +19,7 @@ namespace SpotifyAPI.Web
|
||||
public Task<FullArtist> Get(string artistId, ArtistRequest request, CancellationToken cancel = default)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(artistId, nameof(artistId));
|
||||
Ensure.ArgumentNotNull(request, nameof(request));
|
||||
|
||||
return API.Get<FullArtist>(URLs.Artist(artistId), request.BuildQueryParams(), cancel);
|
||||
}
|
||||
@ -48,6 +49,7 @@ namespace SpotifyAPI.Web
|
||||
public Task<ArtistsRelatedArtistsResponse> GetRelatedArtists(string artistId, ArtistsRelatedArtistsRequest request, CancellationToken cancel = default)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(artistId, nameof(artistId));
|
||||
Ensure.ArgumentNotNull(request, nameof(request));
|
||||
|
||||
return API.Get<ArtistsRelatedArtistsResponse>(URLs.ArtistRelatedArtists(artistId), request.BuildQueryParams(), cancel);
|
||||
}
|
||||
|
@ -1,5 +1,3 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SpotifyAPI.Web
|
||||
{
|
||||
public class ArtistRequest : RequestParams
|
||||
|
@ -29,4 +29,3 @@ namespace SpotifyAPI.Web
|
||||
public string? Locale { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user