Skip to content

Commit

Permalink
style: Trivially simplify some recently-added code.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Jul 8, 2019
1 parent c5a90e1 commit c913941
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions components/style/values/generics/transform.rs
Expand Up @@ -542,11 +542,7 @@ impl<T: ToMatrix> Transform<T> {
)
};

let (m, is_3d) = match self.to_transform_3d_matrix_f64(reference_box) {
Ok(result) => result,
Err(err) => return Err(err),
};

let (m, is_3d) = self.to_transform_3d_matrix_f64(reference_box)?;
Ok((cast_3d_transform(m), is_3d))
}

Expand Down

0 comments on commit c913941

Please sign in to comment.