Skip to content

Commit

Permalink
fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Basit Ayantunde committed Nov 23, 2023
1 parent 14476c8 commit 88cf587
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions routes/originConda.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ router.get(
for (let subdir of channelData.packages[name].subdirs) {
const repoUrl = `${condaChannels[channel]}/${subdir}/repodata.json`
const repoData = await requestPromise({ url: repoUrl, method: 'GET', json: true })
if (repoData.packages) {
Object.entries(repoData.packages)
if (repoData['packages']) {
Object.entries(repoData['packages'])
.forEach(([, packageData]) => {
if (packageData.name == name) {
revisions.push(`${packageData.version}_${subdir}`)
}
})
}
if (repoData["packages.conda"]) {
Object.entries(repoData["packages.conda"])
if (repoData['packages.conda']) {
Object.entries(repoData['packages.conda'])
.forEach(([, packageData]) => {
if (packageData.name == name) {
revisions.push(`${packageData.version}_${subdir}`)
Expand Down

0 comments on commit 88cf587

Please sign in to comment.