From de4365079bad2df3bdee2133576dc913ffbf1ab2 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 17 Mar 2017 09:10:48 +0100 Subject: format code using prettier (#1774) --- server/sonar-web/src/main/js/apps/code/bucket.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'server/sonar-web/src/main/js/apps/code/bucket.js') 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 = {}; -- cgit v1.2.3