summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ide/stores/mutations.js
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2018-03-25 20:16:20 +0200
committerTim Zallmann <tzallmann@gitlab.com>2018-03-28 12:17:02 +0200
commit0ea359d2cfd97f4271f812ba9f216bcf4ae42c20 (patch)
tree925dfc558b4e17fcc6af3dd68aec5a69612aab5b /app/assets/javascripts/ide/stores/mutations.js
parentf00a971a6da0407d7df2f4d8d2905a711a437b4d (diff)
downloadgitlab-ce-0ea359d2cfd97f4271f812ba9f216bcf4ae42c20.tar.gz
Fixes to Formatting to all Files
Diffstat (limited to 'app/assets/javascripts/ide/stores/mutations.js')
-rw-r--r--app/assets/javascripts/ide/stores/mutations.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/app/assets/javascripts/ide/stores/mutations.js b/app/assets/javascripts/ide/stores/mutations.js
index a3b9d0dac8c..5e5eb831662 100644
--- a/app/assets/javascripts/ide/stores/mutations.js
+++ b/app/assets/javascripts/ide/stores/mutations.js
@@ -12,10 +12,7 @@ export default {
[types.TOGGLE_LOADING](state, { entry, forceValue = undefined }) {
if (entry.path) {
Object.assign(state.entries[entry.path], {
- loading:
- forceValue !== undefined
- ? forceValue
- : !state.entries[entry.path].loading,
+ loading: forceValue !== undefined ? forceValue : !state.entries[entry.path].loading,
});
} else {
Object.assign(entry, {
@@ -84,9 +81,7 @@ export default {
if (!foundEntry) {
Object.assign(state.trees[`${projectId}/${branchId}`], {
- tree: state.trees[`${projectId}/${branchId}`].tree.concat(
- data.treeList,
- ),
+ tree: state.trees[`${projectId}/${branchId}`].tree.concat(data.treeList),
});
}
},