committed by
Mrugesh Mohapatra
parent
4b7dc90763
commit
5f0068e9c8
@@ -2,7 +2,7 @@ const crypto = require('crypto');
|
||||
|
||||
function createChallengeNodes(challenge, reporter) {
|
||||
if (typeof challenge.description[0] !== 'string') {
|
||||
reporter.panic(`
|
||||
reporter.warn(`
|
||||
|
||||
${challenge.title} has a description that will break things!
|
||||
|
||||
|
@@ -45,6 +45,7 @@ that delivers challenge files to the plugin
|
||||
const { source } = pluginOptions;
|
||||
const createAndProcessNodes = () =>
|
||||
source()
|
||||
.filter(node => node.challengeType !== 7)
|
||||
.map(nodes => nodes.map(node => createChallengeNodes(node, reporter)))
|
||||
.map(nodes => nodes.map(node => createNode(node)))
|
||||
.subscribe();
|
||||
|
Reference in New Issue
Block a user