forked from M-Labs/nalgebra
Update src/geometry/scale.rs
Removed return Co-authored-by: Sébastien Crozet <sebastien@crozet.re>
This commit is contained in:
parent
de41c42af7
commit
91b8424a86
@ -249,9 +249,9 @@ impl<T: Scalar, const D: usize> Scale<T, D> {
|
|||||||
.vector
|
.vector
|
||||||
.map(|e| {
|
.map(|e| {
|
||||||
if e != T::zero() {
|
if e != T::zero() {
|
||||||
return T::one() / e;
|
T::one() / e
|
||||||
} else {
|
} else {
|
||||||
return T::zero();
|
T::zero()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.into();
|
.into();
|
||||||
|
Loading…
Reference in New Issue
Block a user