From 5400d81f28efd2c282545723ff4166105cea5436 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Fri, 10 Sep 2021 13:00:35 +0200 Subject: [PATCH] integrations: workaround lack of private method support Signed-off-by: Patrik Oldsberg --- packages/integration/src/azure/AzureUrl.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/integration/src/azure/AzureUrl.ts b/packages/integration/src/azure/AzureUrl.ts index add03b7876..76de8550ed 100644 --- a/packages/integration/src/azure/AzureUrl.ts +++ b/packages/integration/src/azure/AzureUrl.ts @@ -81,11 +81,11 @@ export class AzureUrl { this.#ref = ref; } - #baseUrl(...parts: string[]): URL { + #baseUrl = (...parts: string[]): URL => { const url = new URL(this.#origin); url.pathname = parts.map(part => encodeURIComponent(part)).join('/'); return url; - } + }; /** * Returns a repo URL that can be used to navigate to the resource in azure.