Skip to content

Commit

Permalink
use newUrlFromBase to get the version url
Browse files Browse the repository at this point in the history
  • Loading branch information
NGrey5 committed Aug 30, 2021
1 parent 55daa8a commit 34624b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class PrivateGitHubProvider extends BaseGitHubProvider<PrivateGitHubUpdat

private getVersionUrl(version: string): URL {
const tagName = this.options.vPrefixedTagName === false ? version : `v${version}`
return new URL(`/repos/${this.options.owner}/${this.options.repo}/releases/tags/${tagName}`, this.baseApiUrl)
return newUrlFromBase(`/repos/${this.options.owner}/${this.options.repo}/releases/tags/${tagName}`, this.baseApiUrl)
}

resolveFiles(updateInfo: PrivateGitHubUpdateInfo): Array<ResolvedUpdateFileInfo> {
Expand Down

0 comments on commit 34624b4

Please sign in to comment.