Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
bwieger-atlassian-com committed Feb 13, 2025
1 parent a0cdaae commit 5b9a5f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/bitbucket/bitbucket-server/pullRequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { CacheMap } from '../../util/cachemap';
import { Time } from '../../util/time';
import { getFileNameFromPaths } from '../../views/pullrequest/diffViewHelper';
import { clientForSite } from '../bbUtils';
import { IHTTPClient } from '../httpClient';
import { HTTPClient } from '../httpClient';
import {
ApprovalStatus,
BitbucketSite,
Expand All @@ -32,7 +32,7 @@ export class ServerPullRequestApi implements PullRequestApi {
private defaultReviewersCache: CacheMap = new CacheMap();
private fileContentCache: CacheMap = new CacheMap();

constructor(private client: IHTTPClient) {}
constructor(private client: HTTPClient) {}

async getList(workspaceRepo: WorkspaceRepo, queryParams?: any): Promise<PaginatedPullRequests> {
const site = workspaceRepo.mainSiteRemote.site;
Expand Down
12 changes: 0 additions & 12 deletions src/bitbucket/httpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,6 @@ export interface RequestRange {
end: number;
}

export interface IHTTPClient {
getUrl(url: string, cancelToken?: CancelToken): Promise<any>;
get(urlSlug: string, queryParams?: any, cancelToken?: CancelToken): Promise<any>;
getRaw(urlSlug: string, queryParams?: any): Promise<any>;
getArrayBuffer(urlSlug: string, queryParams?: any): Promise<any>;
getOctetStream(urlSlug: string, range?: RequestRange, queryParams?: any): Promise<any>;
post(urlSlug: string, body: any, queryParams?: any): Promise<any>;
put(urlSlug: string, body: any, queryParams?: any): Promise<any>;
delete(urlSlug: string, body: any, queryParams?: any): Promise<any>;
generateUrl(urlSlug: string, queryParams?: any): string;
}

export class HTTPClient {
private transport: AxiosInstance;

Expand Down

0 comments on commit 5b9a5f5

Please sign in to comment.