Removing null endpoint check

This commit is contained in:
James Barnsley
2018-11-01 08:49:59 +13:00
parent 192b1bed88
commit e634cac8c0
4 changed files with 13697 additions and 10426 deletions

View File

@ -28,10 +28,6 @@ const request = (dispatch, getState, endpoint, method = 'GET', data = false) =>
.then(
response => {
if (!endpoint || enpoint == ""){
console.error("No Spotify endpoint provided????", endpoint, method, data);
}
// prepend the API baseurl, unless the endpoint already has it (ie pagination requests)
var url = 'https://api.spotify.com/v1/'+endpoint
if (endpoint.startsWith('https://api.spotify.com/')){