Skip to content

Commit

Permalink
Fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Zharinov committed May 31, 2020
1 parent 4fe7e47 commit 5a09f16
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/platform/bitbucket/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,11 @@ const addMaxLength = (inputUrl: string, pagelen = 100): string => {

async function callApi<T>(
apiUrl: string,
method = 'get',
method: string,
options?: any
): Promise<HttpResponse<T>> {
/* istanbul ignore next */
switch (method.toLowerCase()) {
case 'get':
return bitbucketHttp.getJson<T>(apiUrl, options);
case 'post':
return bitbucketHttp.postJson<T>(apiUrl, options);
case 'put':
Expand All @@ -96,8 +94,9 @@ async function callApi<T>(
return bitbucketHttp.headJson<T>(apiUrl, options);
case 'delete':
return bitbucketHttp.deleteJson<T>(apiUrl, options);
case 'get':
default:
return null;
return bitbucketHttp.getJson<T>(apiUrl, options);
}
}

Expand Down

0 comments on commit 5a09f16

Please sign in to comment.