Skip to content

Commit

Permalink
refactor: use different syntax to save string
Browse files Browse the repository at this point in the history
  • Loading branch information
adelkahomolova committed Dec 9, 2019
1 parent 81daee8 commit 26abede
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/services/bitbucket/BitbucketService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ export class BitbucketService implements IVCSService {
}

const ownerUrl = `www.bitbucket.org/${owner}`;

const ownerId = <string>(await this.client.repositories.get({ repo_slug: repo, username: owner })).data.owner?.uuid;
const ownerId = `${(await this.client.repositories.get({ repo_slug: repo, username: owner })).data.owner?.uuid}`;

const response: DeepRequired<Bitbucket.Response<Bitbucket.Schema.PaginatedPullrequests>> = await axios.get(apiUrl);

Expand Down Expand Up @@ -146,7 +145,7 @@ export class BitbucketService implements IVCSService {
};

const ownerUrl = `www.bitbucket.org/${owner}`;
const ownerId = <string>(await this.client.repositories.get({ repo_slug: repo, username: owner })).data.owner?.uuid;
const ownerId = `${(await this.client.repositories.get({ repo_slug: repo, username: owner })).data.owner?.uuid}`;

const response = <DeepRequired<Bitbucket.Response<Bitbucket.Schema.Pullrequest>>>await this.client.pullrequests.get(params);
response.data;
Expand Down

0 comments on commit 26abede

Please sign in to comment.