Skip to content

Commit 2eb97ec

Browse files
committed
Remove over-guard code.
Signed-off-by: Eric Wang <[email protected]>
1 parent f44f54b commit 2eb97ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plugins/leetcode.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ plugin.getSubmission = function(submission, cb) {
314314
if (re) submission.code = eval(re[1]);
315315

316316
re = body.match(/distribution_formatted:\s('[^']+')/);
317-
if (re) submission.distributionChart = JSON.parse(eval(re[1] || '{}'));
317+
if (re) submission.distributionChart = JSON.parse(eval(re[1]));
318318
return cb(null, submission);
319319
});
320320
};

0 commit comments

Comments
 (0)