Skip to content

Commit

Permalink
am
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall committed Oct 5, 2024
1 parent 165e5d7 commit febc64e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -766,13 +766,13 @@ async function taskMaintenance() {
forEachCatalogUrl(async (url) => {
if (url.startsWith(UrlSchemaStore)) return

await fetch(url, { method: 'HEAD' })
await fetch(url, { method: 'HEAD' })
.then((res) => {
// eslint-disable-line promise/always-return

if (!res.ok) {
console.info(`NOT OK (${res.status}/${res.statusText}): ${url}`)
}

return undefined
})
.catch((err) => {
console.info(`NOT OK (${err.code}): ${url}`)
Expand Down

0 comments on commit febc64e

Please sign in to comment.