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 0916e5c commit 2bf3512
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/platform/bitbucket-server/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ async function callApi<T>(
): Promise<HttpResponse<T>> {
/* istanbul ignore next */
switch (method.toLowerCase()) {
case 'get':
return bitbucketServerHttp.getJson<T>(apiUrl, options);
case 'post':
return bitbucketServerHttp.postJson<T>(apiUrl, options);
case 'put':
Expand All @@ -60,8 +58,9 @@ async function callApi<T>(
return bitbucketServerHttp.headJson<T>(apiUrl, options);
case 'delete':
return bitbucketServerHttp.deleteJson<T>(apiUrl, options);
case 'get':
default:
return null;
return bitbucketServerHttp.getJson<T>(apiUrl, options);
}
}

Expand Down

0 comments on commit 2bf3512

Please sign in to comment.