From bf934e02684809350279bb68ea3226d407724383 Mon Sep 17 00:00:00 2001 From: Supositware Date: Mon, 8 Apr 2019 00:34:33 +0200 Subject: [PATCH] Fixed indent --- commands/utility/download.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/commands/utility/download.js b/commands/utility/download.js index 567483f1..49371427 100644 --- a/commands/utility/download.js +++ b/commands/utility/download.js @@ -35,16 +35,16 @@ class DownloadCommand extends Command { if (link.includes('http') || link.includes('www')) { if (args.alt) { - console.log('alt download!') + console.log('alt download!'); fs.unlink('./video.mp4', (err) => { - if (err); + if (err); }); - return youtubedl.exec(args.link, ['-o', `./video.mp4`], {}, function(err, output) { - if (err) throw err; - console.log(output.join('\n')); - message.delete(); - message.channel.send(`Downloaded by ${message.author.username}`, { files: ['./video.mp4'] }) - .catch(() => message.channel.send('File too big')); + return youtubedl.exec(args.link, ['-o', './video.mp4'], {}, function(err, output) { + if (err) throw err; + console.log(output.join('\n')); + message.delete(); + message.channel.send(`Downloaded by ${message.author.username}`, { files: ['./video.mp4'] }) + .catch(() => message.channel.send('File too big')); }); }