Browse Source

fix: useless conditional in david.js (#124)

github-label
Sam Lanning 6 years ago
committed by Amio /
parent
commit
3680ec9af9
  1. 2
      libs/live-fns/david.js

2
libs/live-fns/david.js

@ -15,7 +15,7 @@ module.exports = async (depType, user, repo, ...path) => {
peer: 'peer-', peer: 'peer-',
optional: 'optional-' optional: 'optional-'
}[depType] }[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 endpoint = `https://david-dm.org/${user}/${repo}/${prefix}info.json${query}`
const { status } = await axios.get(endpoint).then(res => res.data) const { status } = await axios.get(endpoint).then(res => res.data)

Loading…
Cancel
Save