From 9df53ef79c9ad63d962274c44e053ad500ab6976 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Thu, 15 Sep 2016 12:20:16 +0200 Subject: improve code quality --- server/sonar-web/src/main/js/apps/code/utils.js | 2 +- server/sonar-web/src/main/js/apps/settings/components/Definition.js | 2 +- server/sonar-web/src/main/js/apps/web-api/components/WebApiApp.js | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'server/sonar-web') 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 = { -- cgit v1.2.3