Skip to content

Commit

Permalink
removed unnecessary comment and code form auth interceptor
Browse files Browse the repository at this point in the history
  • Loading branch information
takeit committed Apr 1, 2015
1 parent f0ff2e5 commit 6a1366e
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,7 @@ angular.module('playlistsApp').factory('authInterceptor', [
return $q.reject(response);
}

// NOTE: The API is not perfect yet and does not always return
// 401 on authentication errors, thus we must also rely on the
// error message (for now at least).
if (response.status === 401 ||
response.statusText === 'OAuth2 authentication required'
) {
if (response.status === 401) {
// Request failed due to invalid oAuth token - try to
// obtain a new token and then repeat the failed request.
failedRequestConfig = response.config;
Expand Down

0 comments on commit 6a1366e

Please sign in to comment.