From e126d20b59af71466ef3ebdeded98726df235d00 Mon Sep 17 00:00:00 2001 From: Nathaniel Moschkin Date: Fri, 19 Jan 2024 22:02:14 -0500 Subject: [PATCH] simplify expression --- src/commands/cheapestfffe.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/commands/cheapestfffe.ts b/src/commands/cheapestfffe.ts index a952612..f0208e2 100644 --- a/src/commands/cheapestfffe.ts +++ b/src/commands/cheapestfffe.ts @@ -157,10 +157,7 @@ async function asyncHandler( //.setFooter({ text: `${matched.name} is in ${matched.collections.length === 0 ? 'no collections' : `the following collections: ${matched.collections.join(', ')}`}` }); }); - let skirmtext = ''; - if (skirmish) { - skirmtext = '[Skirmish Mode] '; - } + let skirmtext = skirmish ? '[Skirmish Mode] ' : ''; if (fuse) { sendAndCache(message,