fix problems reported by sonar scanner

Change-Id: Ic351745aed9d670c51a33a21c5c0b5cde77a0e0e
Signed-off-by: Iftekharul Islam <iislam@us.ibm.com>
diff --git a/app/common/services/api-utils.js b/app/common/services/api-utils.js
index 2df7b5f..540fb42 100644
--- a/app/common/services/api-utils.js
+++ b/app/common/services/api-utils.js
@@ -326,7 +326,6 @@
                       var data = [];
                       var severityCode = '';
                       var priority = '';
-                      var resolved = false;
                       var relatedItems = [];
 
                       for(var key in content.data){
diff --git a/app/common/services/apiInterceptor.js b/app/common/services/apiInterceptor.js
index bd4743a..0b2f705 100644
--- a/app/common/services/apiInterceptor.js
+++ b/app/common/services/apiInterceptor.js
@@ -29,7 +29,7 @@
                     }
 
                     dataService.last_updated = new Date();
-                    if(response == null){
+                    if(!response){
                         dataService.server_unreachable = true;
                     }else{
                         dataService.server_unreachable = false;