fix problems reported by sonar scanner

Change-Id: Ic351745aed9d670c51a33a21c5c0b5cde77a0e0e
Signed-off-by: Iftekharul Islam <iislam@us.ibm.com>
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;