]> source.dussan.org Git - sonarqube.git/commitdiff
fix quality flaws
authorStas Vilchik <vilchiks@gmail.com>
Fri, 17 Apr 2015 15:39:40 +0000 (17:39 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 17 Apr 2015 15:39:47 +0000 (17:39 +0200)
server/sonar-web/src/main/js/quality-profiles/profiles-view.js
server/sonar-web/src/main/js/widgets/widget.js

index 7909647c32ce16c0d0762554af254422099af146..fbf2615bd429fffbde61e0a087db69e2b5ee9474 100644 (file)
@@ -77,7 +77,7 @@ define([
       } else {
         this.$('[data-language]').removeClass('hidden');
       }
-    },
+    }
   });
 
 });
index c8566b7f4238178a36c1f2b6917ac9f5754f51a7..cd30319f88505b12a84c8318d35f0e7937a07fa9 100644 (file)
@@ -63,13 +63,13 @@ window.SonarWidgets = window.SonarWidgets == null ? {} : window.SonarWidgets;
     d3.json(this.source(), function(error, response) {
       if (response && !error) {
         that.hideSpinner();
-        if (typeof(response.components) === 'undefined' || response.components.length > 0) {
+        if (typeof response.components === 'undefined' || response.components.length > 0) {
           that.widget = new SonarWidgets[that.type()]();
           that.widget.metricsPriority(that.metricsPriority());
           that.widget.options(that.options());
           that.widget.metrics(response.metrics);
           that.widget.components(response.components);
-          if(typeof(that.widget.parseSource) === 'function') {
+          if(typeof that.widget.parseSource === 'function') {
             that.widget.parseSource(response);
           }
           if (typeof that.widget.maxResultsReached === 'function') {