From 56bf2308bfe85097653c4a876c85d2b88f2b012c Mon Sep 17 00:00:00 2001 From: Ivan Demidov Date: Tue, 28 Apr 2020 08:52:20 +0300 Subject: [PATCH] perf: throw error if raw undefined --- src/Tokenizer.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Tokenizer.js b/src/Tokenizer.js index 8d58e86c..38f1328b 100644 --- a/src/Tokenizer.js +++ b/src/Tokenizer.js @@ -30,10 +30,6 @@ function outputLink(cap, link, raw) { } function indentCodeCompensation(raw, text) { - if (raw === undefined) { - return text; - } - const matchIndentToCode = raw.match(/^(\s+)(?:```)/); if (matchIndentToCode === null) {