Make sonarcloud happier (#1810)

This commit is contained in:
Michael Telatynski
2024-07-31 15:08:06 +01:00
committed by GitHub
parent 6239aa5d9f
commit 13a0d0d3e2
4 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ async function pollForUpdates(): Promise<void> {
export async function start(updateBaseUrl: string): Promise<void> {
if (!(await available(updateBaseUrl))) return;
if (updateBaseUrl.slice(-1) !== "/") {
if (!updateBaseUrl.endsWith("/")) {
updateBaseUrl = updateBaseUrl + "/";
}