From 55aab3d1d23bbf130d669d52a206e12443f712a0 Mon Sep 17 00:00:00 2001 From: Edoardo Scibona <12040076+velut@users.noreply.github.com> Date: Fri, 1 Mar 2024 20:49:22 +0100 Subject: [PATCH] chore: formatting --- src/utils/normalize-raw-repository.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/normalize-raw-repository.ts b/src/utils/normalize-raw-repository.ts index ff4c641..8c304ff 100644 --- a/src/utils/normalize-raw-repository.ts +++ b/src/utils/normalize-raw-repository.ts @@ -54,10 +54,10 @@ function parseGitURL({ url }: { url: string }): string | undefined { ? // A normal URL or a shortcut like `github:user/repository` url : // The short form github shortcut `user/repository` - url.includes('/') - ? `github:${url}` - : // Not a URL - ''; + url.includes('/') + ? `github:${url}` + : // Not a URL + ''; try { const { protocol, hostname, pathname } = new URL(urlWithProtocol); const cleanPathname = pathname.replace(/\.git$/, '');