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

pull/125/head
Sam Lanning 2018-08-28 19:08:01 -07:00 zatwierdzone przez Amio /
rodzic 4e103d0c98
commit 3680ec9af9
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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)