From 26ea99fc4ccca9b0db6042a30117295362fdc685 Mon Sep 17 00:00:00 2001 From: Adela Homolova Date: Sun, 8 Dec 2019 16:47:18 +0100 Subject: [PATCH] fix: add a comment --- src/services/bitbucket/BitbucketService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/bitbucket/BitbucketService.ts b/src/services/bitbucket/BitbucketService.ts index 7d362518b..03781f57e 100644 --- a/src/services/bitbucket/BitbucketService.ts +++ b/src/services/bitbucket/BitbucketService.ts @@ -96,7 +96,7 @@ export class BitbucketService implements IVCSService { const ownerUrl = `www.bitbucket.org/${owner}`; - //Bitbucket use two types of accounts - user and team. The request for users uuid fails if it is a team account. + //Bitbucket uses two types of accounts - user and team. The request for users' uuid fails if it is a team account. let ownerId: string; try { ownerId = `${(await this.client.users.get({ username: owner })).data.uuid}`; @@ -154,6 +154,7 @@ export class BitbucketService implements IVCSService { }; const ownerUrl = `www.bitbucket.org/${owner}`; + //Bitbucket use two types of accounts - user and team. The request for users uuid fails if it is a team account. let ownerId = ''; try { ownerId = `${(await this.client.users.get({ username: owner })).data.uuid}`;