Skip to content

Commit 5b9a5f5

Browse files
refactor
1 parent a0cdaae commit 5b9a5f5

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

src/bitbucket/bitbucket-server/pullRequests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { CacheMap } from '../../util/cachemap';
66
import { Time } from '../../util/time';
77
import { getFileNameFromPaths } from '../../views/pullrequest/diffViewHelper';
88
import { clientForSite } from '../bbUtils';
9-
import { IHTTPClient } from '../httpClient';
9+
import { HTTPClient } from '../httpClient';
1010
import {
1111
ApprovalStatus,
1212
BitbucketSite,
@@ -32,7 +32,7 @@ export class ServerPullRequestApi implements PullRequestApi {
3232
private defaultReviewersCache: CacheMap = new CacheMap();
3333
private fileContentCache: CacheMap = new CacheMap();
3434

35-
constructor(private client: IHTTPClient) {}
35+
constructor(private client: HTTPClient) {}
3636

3737
async getList(workspaceRepo: WorkspaceRepo, queryParams?: any): Promise<PaginatedPullRequests> {
3838
const site = workspaceRepo.mainSiteRemote.site;

src/bitbucket/httpClient.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,6 @@ export interface RequestRange {
1111
end: number;
1212
}
1313

14-
export interface IHTTPClient {
15-
getUrl(url: string, cancelToken?: CancelToken): Promise<any>;
16-
get(urlSlug: string, queryParams?: any, cancelToken?: CancelToken): Promise<any>;
17-
getRaw(urlSlug: string, queryParams?: any): Promise<any>;
18-
getArrayBuffer(urlSlug: string, queryParams?: any): Promise<any>;
19-
getOctetStream(urlSlug: string, range?: RequestRange, queryParams?: any): Promise<any>;
20-
post(urlSlug: string, body: any, queryParams?: any): Promise<any>;
21-
put(urlSlug: string, body: any, queryParams?: any): Promise<any>;
22-
delete(urlSlug: string, body: any, queryParams?: any): Promise<any>;
23-
generateUrl(urlSlug: string, queryParams?: any): string;
24-
}
25-
2614
export class HTTPClient {
2715
private transport: AxiosInstance;
2816

0 commit comments

Comments
 (0)