Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Oct 28, 2022
1 parent a0fdfd2 commit 113f495
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions crates/fj-kernel/src/partial/objects/edge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ impl PartialHalfEdge {
///
/// If a global curve is available through both, the curve is preferred.
pub fn extract_global_curve(&self) -> Option<Handle<GlobalCurve>> {
let global_curve_from_curve = || self.curve.global_form();
let global_curve_from_global_form =
|| self.global_form.curve().cloned();

global_curve_from_curve().or_else(global_curve_from_global_form)
self.curve
.global_form()
.or_else(|| self.global_form.curve().cloned())
}

/// Access the vertices of the global form, if available
Expand Down

0 comments on commit 113f495

Please sign in to comment.