Skip to content

Commit 1bd9198

Browse files
committed
fix clippy failure from #691 post-merge
1 parent c5f58b7 commit 1bd9198

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/validators/float.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,8 @@ impl Validator for FloatValidator {
7373
let float: f64 = either_float.try_into()?;
7474
if !self.allow_inf_nan && !float.is_finite() {
7575
return Err(ValError::new(ErrorType::FiniteNumber, input));
76-
} else {
77-
Ok(float.into_py(py))
7876
}
77+
Ok(float.into_py(py))
7978
}
8079

8180
fn different_strict_behavior(

0 commit comments

Comments
 (0)