diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-09-15 12:20:16 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-09-16 10:22:24 +0200 |
commit | 9df53ef79c9ad63d962274c44e053ad500ab6976 (patch) | |
tree | 7cfb045473d9008bb2a0e6fd229df8f887997fb5 /server/sonar-web | |
parent | 391777173512eae74d7861fac2448bf9c379bcf8 (diff) | |
download | sonarqube-9df53ef79c9ad63d962274c44e053ad500ab6976.tar.gz sonarqube-9df53ef79c9ad63d962274c44e053ad500ab6976.zip |
improve code quality
Diffstat (limited to 'server/sonar-web')
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 = { |