perf: throw error if raw undefined

This commit is contained in:
Ivan Demidov 2020-04-28 08:52:20 +03:00
parent 228f0a61ca
commit 56bf2308bf

View File

@ -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) {