npm cmd bug fixes

merge-requests/10/head
Matthew 2020-05-01 01:50:57 -04:00
parent 708a526a46
commit c10ec03ae6
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ export default class NPM extends Command {
const res = await axios.get(`https://registry.npmjs.com/${args[0]}`, { validateStatus: (_) => true }); const res = await axios.get(`https://registry.npmjs.com/${args[0]}`, { validateStatus: (_) => true });
if (res.status === 404) this.error(message.channel, 'Could not find the library, try something else.'); if (res.status === 404) return this.error(message.channel, 'Could not find the library, try something else.');
const { data } = res; const { data } = res;