diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-09-06 17:44:55 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-09-06 17:44:55 +0200 |
commit | c1e3840edf6c7fd36a3149b280a3d276ebce03a5 (patch) | |
tree | ed32b53993619d08adacaa97295c3b699aafcccf /server/sonar-web/src/main/js/apps/project-admin | |
parent | bae4f619db5198f7cb67a7848fdff756d83b5744 (diff) | |
download | sonarqube-c1e3840edf6c7fd36a3149b280a3d276ebce03a5.tar.gz sonarqube-c1e3840edf6c7fd36a3149b280a3d276ebce03a5.zip |
improve code quality
Diffstat (limited to 'server/sonar-web/src/main/js/apps/project-admin')
3 files changed, 7 insertions, 14 deletions
diff --git a/server/sonar-web/src/main/js/apps/project-admin/key/views/UpdateKeyConfirmation.js b/server/sonar-web/src/main/js/apps/project-admin/key/views/UpdateKeyConfirmation.js index 4ece410093b..5a8d14417f4 100644 --- a/server/sonar-web/src/main/js/apps/project-admin/key/views/UpdateKeyConfirmation.js +++ b/server/sonar-web/src/main/js/apps/project-admin/key/views/UpdateKeyConfirmation.js @@ -19,7 +19,6 @@ */ import ModalForm from '../../../../components/common/modal-form'; import Template from './UpdateKeyConfirmation.hbs'; -import { parseError } from '../../../code/utils'; export default ModalForm.extend({ template: Template, diff --git a/server/sonar-web/src/main/js/apps/project-admin/store/actions.js b/server/sonar-web/src/main/js/apps/project-admin/store/actions.js index ca20001b763..18eb9917862 100644 --- a/server/sonar-web/src/main/js/apps/project-admin/store/actions.js +++ b/server/sonar-web/src/main/js/apps/project-admin/store/actions.js @@ -17,21 +17,16 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { - getQualityProfiles, - associateProject, - dissociateProject -} from '../../../api/quality-profiles'; +import { getQualityProfiles, associateProject, dissociateProject } from '../../../api/quality-profiles'; import { getProfileByKey } from './rootReducer'; import { - fetchQualityGates, - getGateForProject, - associateGateWithProject, - dissociateGateWithProject + fetchQualityGates, + getGateForProject, + associateGateWithProject, + dissociateGateWithProject } from '../../../api/quality-gates'; import { getProjectLinks, createLink } from '../../../api/projectLinks'; -import { getTree } from '../../../api/components'; -import { changeKey as changeKeyApi } from '../../../api/components'; +import { getTree, changeKey as changeKeyApi } from '../../../api/components'; import { addGlobalSuccessMessage } from '../../../components/store/globalMessages'; import { translate, translateWithParameters } from '../../../helpers/l10n'; diff --git a/server/sonar-web/src/main/js/apps/project-admin/store/links.js b/server/sonar-web/src/main/js/apps/project-admin/store/links.js index 9a79d3d7905..b1e4dea7f65 100644 --- a/server/sonar-web/src/main/js/apps/project-admin/store/links.js +++ b/server/sonar-web/src/main/js/apps/project-admin/store/links.js @@ -19,8 +19,7 @@ */ import keyBy from 'lodash/keyBy'; import omit from 'lodash/omit'; -import { RECEIVE_PROJECT_LINKS, DELETE_PROJECT_LINK } from './actions'; -import { ADD_PROJECT_LINK } from './actions'; +import { RECEIVE_PROJECT_LINKS, DELETE_PROJECT_LINK, ADD_PROJECT_LINK } from './actions'; const links = (state = {}, action = {}) => { if (action.type === RECEIVE_PROJECT_LINKS) { |