Drop needless "empty parse" check

This commit is contained in:
Juno Takano 2026-01-02 15:30:28 -03:00
commit 48765de3b6

View file

@ -15,8 +15,5 @@ type Lexer = fn(&Lexeme) -> Token;
type LexMap<'lm> = &'lm [(Probe, Lexer)];
pub fn parse(text: &str, config: &Config) -> String {
if text.is_empty() {
return String::new();
}
parser::read(text, config)
}