use unused self-documenting variable (#4605)

This commit is contained in:
Dan Jutan 2022-09-06 08:41:36 -04:00 committed by GitHub
parent 9bcf3c6542
commit e6c80843f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,9 +116,8 @@ export async function main() {
const hash = args.commit ? `#${args.commit}` : '';
// Don't touch the template name if a GitHub repo was provided, ex: `--template cassidoo/shopify-react-astro`
const isThirdParty = options.template.includes('/');
const templateTarget = options.template.includes('/')
const templateTarget = isThirdParty
? options.template
: `withastro/astro/examples/${options.template}#latest`;