diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2017-05-31 17:04:25 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-05-31 17:07:53 -0500 |
commit | 5bd52eaefb11e3568b3e78d21efd0f1dabf328b8 (patch) | |
tree | 7b69535ebb526f5205f5c76fb017badd93bb97de /app/assets | |
parent | 682df5c57b8f7f81b3b4ded69a70ea249962a429 (diff) | |
download | gitlab-ce-5bd52eaefb11e3568b3e78d21efd0f1dabf328b8.tar.gz |
Use object destructuring when passing more than 3 params to follow style guide
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/groups/groups_filterable_list.js | 2 | ||||
-rw-r--r-- | app/assets/javascripts/groups/index.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/groups/groups_filterable_list.js b/app/assets/javascripts/groups/groups_filterable_list.js index 9a8797caf36..d1347dc5a6e 100644 --- a/app/assets/javascripts/groups/groups_filterable_list.js +++ b/app/assets/javascripts/groups/groups_filterable_list.js @@ -1,7 +1,7 @@ import FilterableList from '~/filterable_list'; export default class GroupFilterableList extends FilterableList { - constructor(form, filter, holder, store) { + constructor({ form, filter, holder, store }) { super(form, filter, holder); this.store = store; diff --git a/app/assets/javascripts/groups/index.js b/app/assets/javascripts/groups/index.js index 4d0f415bfc2..29dd6709421 100644 --- a/app/assets/javascripts/groups/index.js +++ b/app/assets/javascripts/groups/index.js @@ -78,7 +78,7 @@ $(() => { created() { let groupFilterList = null; - groupFilterList = new GroupFilterableList(form, filter, holder, store); + groupFilterList = new GroupFilterableList({ form, filter, holder, store }); groupFilterList.initSearch(); this.fetchGroups() |