diff options
author | Stas Vilchik <stas-vilchik@users.noreply.github.com> | 2017-03-17 09:10:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-17 09:10:48 +0100 |
commit | de4365079bad2df3bdee2133576dc913ffbf1ab2 (patch) | |
tree | a522ccb952f0d37f454e8188e13b3dec3f731912 /server/sonar-web/src/main/js/apps/code/bucket.js | |
parent | 6a03df65cc0c91a26150ea172a2c480e07326ea1 (diff) | |
download | sonarqube-de4365079bad2df3bdee2133576dc913ffbf1ab2.tar.gz sonarqube-de4365079bad2df3bdee2133576dc913ffbf1ab2.zip |
format code using prettier (#1774)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/code/bucket.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/code/bucket.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/apps/code/bucket.js b/server/sonar-web/src/main/js/apps/code/bucket.js index 6b1a972b4ce..7b235e0f14b 100644 --- a/server/sonar-web/src/main/js/apps/code/bucket.js +++ b/server/sonar-web/src/main/js/apps/code/bucket.js @@ -21,31 +21,31 @@ let bucket = {}; let childrenBucket = {}; let breadcrumbsBucket = {}; -export function addComponent (component) { +export function addComponent(component) { bucket[component.key] = component; } -export function getComponent (componentKey) { +export function getComponent(componentKey) { return bucket[componentKey]; } -export function addComponentChildren (componentKey, children, total, page) { +export function addComponentChildren(componentKey, children, total, page) { childrenBucket[componentKey] = { children, total, page }; } -export function getComponentChildren (componentKey) { +export function getComponentChildren(componentKey) { return childrenBucket[componentKey]; } -export function addComponentBreadcrumbs (componentKey, breadcrumbs) { +export function addComponentBreadcrumbs(componentKey, breadcrumbs) { breadcrumbsBucket[componentKey] = breadcrumbs; } -export function getComponentBreadcrumbs (componentKey) { +export function getComponentBreadcrumbs(componentKey) { return breadcrumbsBucket[componentKey]; } -export function clearBucket () { +export function clearBucket() { bucket = {}; childrenBucket = {}; breadcrumbsBucket = {}; |