mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 02:57:34 +00:00
chore: reuse variable
Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
+3
-2
@@ -55,11 +55,12 @@ export const Print = {
|
||||
return `✖ ${buildProductString(link, store)} :: CAPTCHA`;
|
||||
},
|
||||
inStock(link: Link, store: Store, color?: boolean, sms?: boolean): string {
|
||||
const productString = `${buildProductString(link, store)} :: IN STOCK`;
|
||||
|
||||
if (color) {
|
||||
return chalk.bgGreen.white.bold(`🚀🚨 ${buildProductString(link, store, false)} :: IN STOCK 🚨🚀`);
|
||||
return chalk.bgGreen.white.bold(`🚀🚨 ${productString} 🚨🚀`);
|
||||
}
|
||||
|
||||
const productString = `${buildProductString(link, store)} :: IN STOCK`;
|
||||
if (sms) {
|
||||
return productString;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user