aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-09-15 12:20:16 +0200
committerStas Vilchik <vilchiks@gmail.com>2016-09-16 10:22:24 +0200
commit9df53ef79c9ad63d962274c44e053ad500ab6976 (patch)
tree7cfb045473d9008bb2a0e6fd229df8f887997fb5 /server/sonar-web
parent391777173512eae74d7861fac2448bf9c379bcf8 (diff)
downloadsonarqube-9df53ef79c9ad63d962274c44e053ad500ab6976.tar.gz
sonarqube-9df53ef79c9ad63d962274c44e053ad500ab6976.zip
improve code quality
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/apps/code/utils.js2
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/Definition.js2
-rw-r--r--server/sonar-web/src/main/js/apps/web-api/components/WebApiApp.js4
3 files changed, 3 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/apps/code/utils.js b/server/sonar-web/src/main/js/apps/code/utils.js
index 8347f52fe71..2236c75dde8 100644
--- a/server/sonar-web/src/main/js/apps/code/utils.js
+++ b/server/sonar-web/src/main/js/apps/code/utils.js
@@ -62,7 +62,7 @@ function requestChildren (componentKey, metrics, page) {
if (r.paging.total > r.paging.pageSize * r.paging.pageIndex) {
return requestChildren(componentKey, metrics, page + 1).then(moreComponents => {
return [...r.components, ...moreComponents];
- })
+ });
}
return r.components;
});
diff --git a/server/sonar-web/src/main/js/apps/settings/components/Definition.js b/server/sonar-web/src/main/js/apps/settings/components/Definition.js
index 995b862d039..76202b6005f 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/Definition.js
+++ b/server/sonar-web/src/main/js/apps/settings/components/Definition.js
@@ -24,7 +24,7 @@ import classNames from 'classnames';
import Input from './inputs/Input';
import DefinitionDefaults from './DefinitionDefaults';
import DefinitionChanges from './DefinitionChanges';
-import { getPropertyName, getPropertyDescription, isEmptyValue, getSettingValue, isDefaultOrInherited } from '../utils';
+import { getPropertyName, getPropertyDescription, getSettingValue, isDefaultOrInherited } from '../utils';
import { translateWithParameters, translate } from '../../../helpers/l10n';
import { resetValue, saveValue } from '../store/actions';
import { isLoading, getValidationMessage, getChangedValue } from '../store/rootReducer';
diff --git a/server/sonar-web/src/main/js/apps/web-api/components/WebApiApp.js b/server/sonar-web/src/main/js/apps/web-api/components/WebApiApp.js
index 3ca3b93312b..51c56ab4839 100644
--- a/server/sonar-web/src/main/js/apps/web-api/components/WebApiApp.js
+++ b/server/sonar-web/src/main/js/apps/web-api/components/WebApiApp.js
@@ -19,13 +19,11 @@
*/
import React from 'react';
import { Link } from 'react-router';
-
import { fetchWebApi } from '../../../api/web-api';
import Menu from './Menu';
import Search from './Search';
import Domain from './Domain';
-import { getActionKey } from '../utils';
-import { isDomainPathActive } from '../utils';
+import { getActionKey, isDomainPathActive } from '../utils';
export default class WebApiApp extends React.Component {
state = {