Skip to content

Commit 966c718

Browse files
author
zocomputer
committed
Fix typos in error messages
- Fix extra closing brace in parseRepoUrl template literal - Fix duplicate 'the' in error message ('the the branch' -> 'the branch')
1 parent d610999 commit 966c718

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/features/analysis/github/github.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function parseRepoUrl(repoUrl: string) {
4848
const slug = extractSlug(repoUrl)
4949
const [owner, repo] = slug.split('/')
5050
if (!owner || !repo) {
51-
throw new Error(`Error parsing repo url ${repoUrl}}`)
51+
throw new Error(`Error parsing repo url ${repoUrl}`)
5252
}
5353
return { owner, repo }
5454
}
@@ -111,7 +111,7 @@ export async function downloadRepo(
111111
debug('GH zipball request failed %s %s', response.body, response.status)
112112
repoSpinner.error({ text: '💾 Repo download failed' })
113113
throw new Error(
114-
`Can't access the the branch ${chalk.bold(reference)} on ${chalk.bold(
114+
`Can't access the branch ${chalk.bold(reference)} on ${chalk.bold(
115115
repoUrl
116116
)} make sure it exits.`
117117
)

0 commit comments

Comments
 (0)