From 134836de7e99146d802d3391a0bd9249509cc53f Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 21 Nov 2020 21:16:52 -0500 Subject: [PATCH] Fix lint --- commands/edit-image/yu-gi-oh-gen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-image/yu-gi-oh-gen.js b/commands/edit-image/yu-gi-oh-gen.js index e09e0c6b..fa23c990 100644 --- a/commands/edit-image/yu-gi-oh-gen.js +++ b/commands/edit-image/yu-gi-oh-gen.js @@ -151,7 +151,7 @@ module.exports = class YuGiOhGenCommand extends Command { } ctx.font = monsterType === 'normal' ? '27px Stone Serif LT Italic' : '27px Matrix Book'; const wrappedEffect = await wrapText(ctx, effect, 690); - const trimmed = wrappedEffect.slice(0, (type === 'monster' ? 4 : 6)); + const trimmed = wrappedEffect.slice(0, type === 'monster' ? 4 : 6); ctx.fillText(trimmed.join('\n'), 63, 933 - (type === 'monster' ? 0 : 34)); ctx.font = '22px Stone Serif'; ctx.fillStyle = monsterType === 'xyz' ? 'white' : 'black';