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:
Emilio Cobos Álvarez 2019-08-03 10:01:58 +00:00
parent 3ec38e252f
commit 2c17050819
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A

View file

@ -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(())
}