Skip to content

Commit

Permalink
let -> const
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwofford committed Nov 18, 2024
1 parent d4bd78f commit a0ce69f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/harbor/shipyard/new-ship-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ async function getReadmeFromRepo(url: string) {
return null
}
// https://api.github.com/repos/OWNER/REPO/readme
let readmeUrl = url.replace(
const readmeUrl = url.replace(
/https:\/\/github.com\/(.*?)\/(.*?)\/?$/,
'https://github.com/$1/$2/readme',
)
let readmeData = await fetch(readmeUrl).then((d) => d.json())
const readmeData = await fetch(readmeUrl).then((d) => d.json())
const readmeURI = readmeData.download_url
return (await testReadmeLink(readmeURI)) ? readmeURI : null
}
Expand Down

0 comments on commit a0ce69f

Please sign in to comment.