mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Deindent a bit SVG path parsing code.
None cannot be returned, since we just called peek() and it returned something. Differential Revision: https://phabricator.services.mozilla.com/D40538
This commit is contained in:
parent
3ec38e252f
commit
2c17050819
1 changed files with 28 additions and 32 deletions
|
@ -625,8 +625,7 @@ impl<'a> PathParser<'a> {
|
|||
break;
|
||||
}
|
||||
|
||||
match self.chars.next() {
|
||||
Some(command) => {
|
||||
let command = self.chars.next().unwrap();
|
||||
let abs = if command.is_ascii_uppercase() {
|
||||
IsAbsolute::Yes
|
||||
} else {
|
||||
|
@ -656,9 +655,6 @@ impl<'a> PathParser<'a> {
|
|||
b'T' | b't' => parse_smooth_quadratic_bezier_curveto,
|
||||
b'A' | b'a' => parse_elliptical_arc,
|
||||
);
|
||||
},
|
||||
_ => break, // no more commands.
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue