fix lint issues with ===

This commit is contained in:
Kyle Spearrin 2016-09-17 23:00:05 -04:00
parent 2f363c3e3a
commit e1a6bb1ddc
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ angular
return config; return config;
}, },
response: function (response) { response: function (response) {
if (response.status === 401 || response.status == 403) { if (response.status === 401 || response.status === 403) {
$injector.get('authService').logOut(); $injector.get('authService').logOut();
$injector.get('$state').go('frontend.login.info').then(function () { $injector.get('$state').go('frontend.login.info').then(function () {
toastr.warning('Your login session has expired.', 'Logged out'); toastr.warning('Your login session has expired.', 'Logged out');
@ -17,7 +17,7 @@ angular
return response || $q.when(response); return response || $q.when(response);
}, },
responseError: function (rejection) { responseError: function (rejection) {
if (rejection.status === 401 || rejection.status == 403) { if (rejection.status === 401 || rejection.status === 403) {
$injector.get('authService').logOut(); $injector.get('authService').logOut();
$injector.get('$state').go('frontend.login.info').then(function () { $injector.get('$state').go('frontend.login.info').then(function () {
toastr.warning('Your login session has expired.', 'Logged out'); toastr.warning('Your login session has expired.', 'Logged out');

View File

@ -43,7 +43,7 @@
var pushError = true; var pushError = true;
for (var i = 0; i < form.$errors.length; i++) { for (var i = 0; i < form.$errors.length; i++) {
if (form.$errors[i] == errorMessage) { if (form.$errors[i] === errorMessage) {
pushError = false; pushError = false;
break; break;
} }