diff options
author | Nathan Friend <nathan@gitlab.com> | 2019-06-04 01:51:02 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2019-06-04 01:51:02 +0300 |
commit | bee3c7e847e4c682f3b808ebfddcc0b6746c2d60 (patch) | |
tree | ddac4275d2f6da90e0e5651c5d030d861425a7d9 /app/assets/javascripts/error_tracking_settings | |
parent | deebe0bf1ed222450092397e683dff746c7979b3 (diff) |
Comply with `no-implicit-coercion` rule (CE)
This commit is the result of running `yarn eslint --fix` after enabling
the `no-implicit-coercion` ESLint rule. This rule has been added to
our ESLint config here:
https://gitlab.com/gitlab-org/gitlab-eslint-config/merge_requests/14
Diffstat (limited to 'app/assets/javascripts/error_tracking_settings')
-rw-r--r-- | app/assets/javascripts/error_tracking_settings/store/getters.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/error_tracking_settings/store/getters.js b/app/assets/javascripts/error_tracking_settings/store/getters.js index a008b181907..d77e5f15469 100644 --- a/app/assets/javascripts/error_tracking_settings/store/getters.js +++ b/app/assets/javascripts/error_tracking_settings/store/getters.js @@ -2,10 +2,10 @@ import _ from 'underscore'; import { __, s__, sprintf } from '~/locale'; import { getDisplayName } from '../utils'; -export const hasProjects = state => !!state.projects && state.projects.length > 0; +export const hasProjects = state => Boolean(state.projects) && state.projects.length > 0; export const isProjectInvalid = (state, getters) => - !!state.selectedProject && + Boolean(state.selectedProject) && getters.hasProjects && !state.projects.some(project => _.isMatch(state.selectedProject, project)); |