From 335148e81c02bbbca21da8ccf776801158e8cc99 Mon Sep 17 00:00:00 2001 From: Nicolas Brondin-Bernard Date: Mon, 3 Apr 2023 20:46:39 +0200 Subject: [PATCH] fix: eslint not building because of unused variable Removed unused code --- server/services/stripeService.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/server/services/stripeService.js b/server/services/stripeService.js index 7de6f71..2516743 100644 --- a/server/services/stripeService.js +++ b/server/services/stripeService.js @@ -119,13 +119,6 @@ module.exports = ({ strapi }) => ({ }, async deleteProduct(productId, stripeProductId) { try { - const stripeSettings = await this.initialize(); - let stripe; - if (stripeSettings.isLiveMode) { - stripe = new Stripe(stripeSettings.stripeLiveSecKey); - } else { - stripe = new Stripe(stripeSettings.stripeTestSecKey); - } const response = await strapi .query('plugin::strapi-stripe.ss-product') .delete({ where: { id: productId } });