From e1a6bb1ddcf36b8b03d7155ce60f5bd6ac8f8bc2 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 17 Sep 2016 23:00:05 -0400 Subject: [PATCH] fix lint issues with === --- src/Web/wwwroot/app/apiInterceptor.js | 4 ++-- src/Web/wwwroot/app/services/validationService.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Web/wwwroot/app/apiInterceptor.js b/src/Web/wwwroot/app/apiInterceptor.js index 5040b83ea6..573f58199c 100644 --- a/src/Web/wwwroot/app/apiInterceptor.js +++ b/src/Web/wwwroot/app/apiInterceptor.js @@ -7,7 +7,7 @@ angular return config; }, response: function (response) { - if (response.status === 401 || response.status == 403) { + if (response.status === 401 || response.status === 403) { $injector.get('authService').logOut(); $injector.get('$state').go('frontend.login.info').then(function () { toastr.warning('Your login session has expired.', 'Logged out'); @@ -17,7 +17,7 @@ angular return response || $q.when(response); }, responseError: function (rejection) { - if (rejection.status === 401 || rejection.status == 403) { + if (rejection.status === 401 || rejection.status === 403) { $injector.get('authService').logOut(); $injector.get('$state').go('frontend.login.info').then(function () { toastr.warning('Your login session has expired.', 'Logged out'); diff --git a/src/Web/wwwroot/app/services/validationService.js b/src/Web/wwwroot/app/services/validationService.js index a724f5ebec..1015c98fd2 100644 --- a/src/Web/wwwroot/app/services/validationService.js +++ b/src/Web/wwwroot/app/services/validationService.js @@ -43,7 +43,7 @@ var pushError = true; for (var i = 0; i < form.$errors.length; i++) { - if (form.$errors[i] == errorMessage) { + if (form.$errors[i] === errorMessage) { pushError = false; break; }