From 00d989fd7a943d7e221585d2dc83b18dd5cb2aa4 Mon Sep 17 00:00:00 2001 From: David Lilienfeld Date: Fri, 13 Dec 2024 17:43:19 -0500 Subject: [PATCH] Moved throttle below imports in BitbucketServerClient Signed-off-by: David Lilienfeld --- .../src/lib/BitbucketServerClient.ts | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/plugins/catalog-backend-module-bitbucket-server/src/lib/BitbucketServerClient.ts b/plugins/catalog-backend-module-bitbucket-server/src/lib/BitbucketServerClient.ts index ba5f75268c..a29b0ae4ff 100644 --- a/plugins/catalog-backend-module-bitbucket-server/src/lib/BitbucketServerClient.ts +++ b/plugins/catalog-backend-module-bitbucket-server/src/lib/BitbucketServerClient.ts @@ -19,6 +19,13 @@ import { getBitbucketServerRequestOptions, } from '@backstage/integration'; import pThrottle from 'p-throttle'; +import { + BitbucketServerDefaultBranch, + BitbucketServerRepository, +} from './index'; +import { BitbucketServerProject } from './types'; +import { NotFoundError } from '@backstage/errors'; +import { ResponseError } from '@backstage/errors'; // 1 per second const throttle = pThrottle({ @@ -31,15 +38,6 @@ const throttledFetch = throttle( return await fetch(url, options); }, ); -import { - BitbucketServerDefaultBranch, - BitbucketServerRepository, -} from './index'; - -import { BitbucketServerProject } from './types'; -import { NotFoundError } from '@backstage/errors'; - -import { ResponseError } from '@backstage/errors'; /** * A client for interacting with a Bitbucket Server instance