From 22626c087340c833075bb7a76e63257c5170e28c Mon Sep 17 00:00:00 2001 From: Mark Moffat Date: Fri, 25 Oct 2019 19:38:47 +1030 Subject: [PATCH] Linting --- app.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app.js b/app.js index ddcbdd8..599a3d1 100644 --- a/app.js +++ b/app.js @@ -31,9 +31,8 @@ if(baseConfig === false){ } // Validate the payment gateway config -switch(config.paymentGateway) -{ - case 'paypal': +switch(config.paymentGateway){ + case'paypal': const paypalConfig = ajv.validate(require('./config/paypalSchema'), require('./config/paypal.json')); if(paypalConfig === false){ console.log(colors.red(`PayPal config is incorrect: ${ajv.errorsText()}`)); @@ -41,7 +40,7 @@ switch(config.paymentGateway) } break; - case 'stripe': + case'stripe': const stripeConfig = ajv.validate(require('./config/stripeSchema'), require('./config/stripe.json')); if(stripeConfig === false){ console.log(colors.red(`Stripe config is incorrect: ${ajv.errorsText()}`)); @@ -49,7 +48,7 @@ switch(config.paymentGateway) } break; - case 'authorizenet': + case'authorizenet': const authorizenetConfig = ajv.validate(require('./config/authorizenetSchema'), require('./config/authorizenet.json')); if(authorizenetConfig === false){ console.log(colors.red(`Authorizenet config is incorrect: ${ajv.errorsText()}`));