We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f44f54b commit 2eb97ecCopy full SHA for 2eb97ec
lib/plugins/leetcode.js
@@ -314,7 +314,7 @@ plugin.getSubmission = function(submission, cb) {
314
if (re) submission.code = eval(re[1]);
315
316
re = body.match(/distribution_formatted:\s('[^']+')/);
317
- if (re) submission.distributionChart = JSON.parse(eval(re[1] || '{}'));
+ if (re) submission.distributionChart = JSON.parse(eval(re[1]));
318
return cb(null, submission);
319
});
320
};
0 commit comments