From 2cc4af352936ce0788f69747ab404c8131096431 Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Fri, 2 Jun 2023 12:13:44 -0500 Subject: [PATCH] chore: lint --- packages/create-astro/src/actions/template.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/create-astro/src/actions/template.ts b/packages/create-astro/src/actions/template.ts index 33a8b7881a92..85b7d6f27b31 100644 --- a/packages/create-astro/src/actions/template.ts +++ b/packages/create-astro/src/actions/template.ts @@ -68,11 +68,11 @@ const FILES_TO_UPDATE = { }), }; -function getTemplateTarget(template: string, ref: string = 'latest') { - const isThirdParty = template.includes('/'); - if (isThirdParty) return template; - if (template === 'starlight') return `withastro/starlight/examples/basics`; - return `github:withastro/astro/examples/${template}#${ref}`; +function getTemplateTarget(tmpl: string, ref = 'latest') { + const isThirdParty = tmpl.includes('/'); + if (isThirdParty) return tmpl; + if (tmpl === 'starlight') return `withastro/starlight/examples/basics`; + return `github:withastro/astro/examples/${tmpl}#${ref}`; } export default async function copyTemplate(tmpl: string, ctx: Context) {