From f8df0dfe9289b17ca99911b9a9b59fb0092012fd Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 17 Apr 2015 17:39:40 +0200 Subject: [PATCH] fix quality flaws --- .../sonar-web/src/main/js/quality-profiles/profiles-view.js | 2 +- server/sonar-web/src/main/js/widgets/widget.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/sonar-web/src/main/js/quality-profiles/profiles-view.js b/server/sonar-web/src/main/js/quality-profiles/profiles-view.js index 7909647c32c..fbf2615bd42 100644 --- a/server/sonar-web/src/main/js/quality-profiles/profiles-view.js +++ b/server/sonar-web/src/main/js/quality-profiles/profiles-view.js @@ -77,7 +77,7 @@ define([ } else { this.$('[data-language]').removeClass('hidden'); } - }, + } }); }); diff --git a/server/sonar-web/src/main/js/widgets/widget.js b/server/sonar-web/src/main/js/widgets/widget.js index c8566b7f423..cd30319f885 100644 --- a/server/sonar-web/src/main/js/widgets/widget.js +++ b/server/sonar-web/src/main/js/widgets/widget.js @@ -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') { -- 2.39.5