fix: remove remnants of servicebot

None of the code was still in use.
This commit is contained in:
Oliver Eyton-Williams
2020-08-26 15:51:56 +02:00
committed by Mrugesh Mohapatra
parent 5ce8abc131
commit c772382d59
8 changed files with 5 additions and 81 deletions

View File

@ -52,15 +52,12 @@ exports.createPages = function createPages({ graphql, actions, reporter }) {
}
}
if (!env.stripePublicKey || !env.servicebotId) {
if (!env.stripePublicKey) {
if (process.env.FREECODECAMP_NODE_ENV === 'production') {
throw new Error(
'Stripe public key and Servicebot id are required to start the client!'
);
throw new Error('Stripe public key is required to start the client!');
} else {
reporter.info(
'Stripe public key or Servicebot id missing or invalid. Required for' +
' donations.'
'Stripe public key missing or invalid. Required for donations.'
);
}
}