Drop needless "empty parse" check
This commit is contained in:
parent
0ddc03f6c1
commit
48765de3b6
1 changed files with 0 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue