diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-04-15 09:39:39 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-04-15 09:39:46 +0200 |
commit | d464f2d6abcecd7cd2f5ca6f96d7b61b5b88444b (patch) | |
tree | ffe2ae875f3adf9cdef6df315ff4dc898ed8710a /server/sonar-web/src/main/js/apps/custom-measures/form-view.js | |
parent | 8a49482fc8b942ea75ddab4fee58d75a5c6eee9a (diff) | |
download | sonarqube-d464f2d6abcecd7cd2f5ca6f96d7b61b5b88444b.tar.gz sonarqube-d464f2d6abcecd7cd2f5ca6f96d7b61b5b88444b.zip |
fix quality flaws
Diffstat (limited to 'server/sonar-web/src/main/js/apps/custom-measures/form-view.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/custom-measures/form-view.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/custom-measures/form-view.js b/server/sonar-web/src/main/js/apps/custom-measures/form-view.js index 857c4594ece..c25c9470ef1 100644 --- a/server/sonar-web/src/main/js/apps/custom-measures/form-view.js +++ b/server/sonar-web/src/main/js/apps/custom-measures/form-view.js @@ -62,7 +62,7 @@ export default ModalForm.extend({ const isNew = !this.model; return _.extend(ModalForm.prototype.serializeData.apply(this, arguments), { metrics, - canCreateMetric: !isNew || (isNew && metrics.length > 0) + canCreateMetric: !isNew || metrics.length > 0 }); } }); |