diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-06-01 16:02:43 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-06-01 16:02:43 +0200 |
commit | 6609543936253149851cbbcbb89d197a89eb2392 (patch) | |
tree | 3a8e78bb3d2d0ca26dfaecc0360d895a3ec92583 /server/sonar-web/src/main/js/libs | |
parent | 899e9116b68a6663ed9fd4aa8cf84556845aa5fb (diff) | |
download | sonarqube-6609543936253149851cbbcbb89d197a89eb2392.tar.gz sonarqube-6609543936253149851cbbcbb89d197a89eb2392.zip |
fix quality flaws
Diffstat (limited to 'server/sonar-web/src/main/js/libs')
-rw-r--r-- | server/sonar-web/src/main/js/libs/widgets/treemap.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/libs/widgets/treemap.js b/server/sonar-web/src/main/js/libs/widgets/treemap.js index f9cc1992833..5c38af4db18 100644 --- a/server/sonar-web/src/main/js/libs/widgets/treemap.js +++ b/server/sonar-web/src/main/js/libs/widgets/treemap.js @@ -297,8 +297,8 @@ }).done(function (r) { var components = that.formatComponents(r); if (components != null) { - components = _.sortBy(components, function (d) { - return -that.sizeMetric.value(d); + components = _.sortBy(components, function (component) { + return -that.sizeMetric.value(component); }); components = _.initial(components, components.length - that.options().maxItems - 1); that.updateTreemap(components, components.length > that.options().maxItems); |