Skip to content

Commit efe408a

Browse files
committed
fix: always pass URL base
1 parent 0083fda commit efe408a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/blame.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,7 @@ const getDecorationFromHunk = (hunk: Hunk, now: number, decoratedLine: number):
2121
addSuffix: true,
2222
})}: • ${truncate(hunk.message, 45)}`,
2323
hoverMessage: `${truncate(hunk.message, 1000)}`,
24-
linkURL: new URL(
25-
hunk.commit.url,
26-
sourcegraph.internal.clientApplication === 'sourcegraph'
27-
? undefined
28-
: sourcegraph.internal.sourcegraphURL.toString()
29-
).href,
24+
linkURL: new URL(hunk.commit.url, sourcegraph.internal.sourcegraphURL.toString()).href,
3025
},
3126
})
3227

0 commit comments

Comments
 (0)