Skip to content

Commit 9933c97

Browse files
committed
Adds extra check just in case
1 parent 85f704a commit 9933c97

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/uris/deepLinks/deepLinkService.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,10 @@ export class DeepLinkService implements Disposable {
209209
}
210210

211211
const tag = await this.getShaForTag(ref);
212-
return tag != null;
212+
if (tag != null) return true;
213+
214+
const sha = await this.getShaForCommit(ref);
215+
return sha != null;
213216
}
214217

215218
private async getShasForTargets(): Promise<string | string[] | undefined> {

0 commit comments

Comments
 (0)