mirror of
https://github.com/astral-sh/ruff
synced 2026-01-09 07:34:06 -05:00
Fix match
This commit is contained in:
@@ -228,10 +228,9 @@ impl<'a> StringParser<'a> {
|
||||
|
||||
match self.peek() {
|
||||
Some('}' | ':') => {}
|
||||
Some(_) => {
|
||||
return Err(InvalidConversionFlag.to_lexical_error(self.get_pos()))
|
||||
Some(_) | None => {
|
||||
return Err(UnclosedLbrace.to_lexical_error(self.get_pos()))
|
||||
}
|
||||
None => return Err(UnclosedLbrace.to_lexical_error(self.get_pos())),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user