mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 06:27:38 +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`;
|
return `✖ ${buildProductString(link, store)} :: CAPTCHA`;
|
||||||
},
|
},
|
||||||
inStock(link: Link, store: Store, color?: boolean, sms?: boolean): string {
|
inStock(link: Link, store: Store, color?: boolean, sms?: boolean): string {
|
||||||
|
const productString = `${buildProductString(link, store)} :: IN STOCK`;
|
||||||
|
|
||||||
if (color) {
|
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) {
|
if (sms) {
|
||||||
return productString;
|
return productString;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user