Skip to content

Commit

Permalink
Clippy: needless bool
Browse files Browse the repository at this point in the history
  • Loading branch information
Logicalshift committed Mar 6, 2022
1 parent a6c1ed7 commit 097197f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/bezier/intersection/fat_line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,7 @@ impl FatLine {
/// Returns true if this line is flat (indicating the source curve is a straight line)
///
pub fn is_flat(&self) -> bool {
if self.d_min.abs() < SMALL_DISTANCE && self.d_max.abs() < SMALL_DISTANCE {
true
} else {
false
}
self.d_min.abs() < SMALL_DISTANCE && self.d_max.abs() < SMALL_DISTANCE
}
}

Expand Down

0 comments on commit 097197f

Please sign in to comment.