npm cmd bug fixes

merge-requests/12/head
Matthew 2020-05-01 01:50:57 -04:00 committed by Bsian
parent 5d77817a72
commit 8f06ad41e1
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
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 });
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;