From c10ec03ae6784f08de4e820cfa8e7c05fa838176 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Fri, 1 May 2020 01:50:57 -0400 Subject: [PATCH] npm cmd bug fixes --- src/commands/npm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/npm.ts b/src/commands/npm.ts index 98a489f..fae9cff 100644 --- a/src/commands/npm.ts +++ b/src/commands/npm.ts @@ -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;