Removed an assertion

This commit is contained in:
mrfry 2020-10-14 15:32:01 +02:00
parent fcb84afddc
commit c95edb01f8

View file

@ -122,7 +122,9 @@ function answerPreProcessor(value) {
// 'a. pécsi sör' -> 'pécsi sör' // 'a. pécsi sör' -> 'pécsi sör'
function removeAnswerLetters(value) { function removeAnswerLetters(value) {
assert(value) if (!value) {
return
}
let val = value.split('. ') let val = value.split('. ')
if (val[0].length < 2 && val.length > 1) { if (val[0].length < 2 && val.length > 1) {