style: Deindent a giant loop guarded by an !is_empty() condition.

This commit is contained in:
Emilio Cobos Álvarez 2018-02-14 20:06:23 +01:00
parent ba7629a17e
commit 5c2ac8cf8b
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -764,13 +764,11 @@ impl PropertyDeclarationBlock {
}
// Step 3.3
let shorthands = declaration.shorthands();
if !shorthands.is_empty() {
// Step 3.3.1 is done by checking already_serialized while
// iterating below.
// Step 3.3.2
for &shorthand in shorthands {
for &shorthand in declaration.shorthands() {
let properties = shorthand.longhands();
// Substep 2 & 3
@ -901,7 +899,6 @@ impl PropertyDeclarationBlock {
// preferred order.
break;
}
}
// Step 3.3.4
if already_serialized.contains(property) {