kopia lustrzana https://github.com/badgen/badgen.net
fix: useless conditional in david.js (#124)
rodzic
4e103d0c98
commit
3680ec9af9
|
|
@ -15,7 +15,7 @@ module.exports = async (depType, user, repo, ...path) => {
|
|||
peer: 'peer-',
|
||||
optional: 'optional-'
|
||||
}[depType]
|
||||
const query = path ? `?path=${path.join('/')}` : ''
|
||||
const query = path.length ? `?path=${path.join('/')}` : ''
|
||||
const endpoint = `https://david-dm.org/${user}/${repo}/${prefix}info.json${query}`
|
||||
const { status } = await axios.get(endpoint).then(res => res.data)
|
||||
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue