From 5a3e6a4e18b77e3ee776202804c6a03956c87bdd Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Thu, 3 Feb 2022 02:48:08 -0500 Subject: [PATCH] Fixes missing return --- src/git/models/commit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git/models/commit.ts b/src/git/models/commit.ts index a095874..7bf9dfc 100644 --- a/src/git/models/commit.ts +++ b/src/git/models/commit.ts @@ -500,7 +500,7 @@ export class GitCommitIdentity { commit: GitCommit, options?: { defaultStyle?: GravatarDefaultStyle; size?: number }, ): Uri | Promise { - if (this.avatarUrl != null) Uri.parse(this.avatarUrl); + if (this.avatarUrl != null) return Uri.parse(this.avatarUrl); return getAvatarUri(this.email, commit, options); }