Small cleanup

This commit is contained in:
mcarton 2016-06-21 23:53:24 +02:00
parent f37c9adbd9
commit f6ba217c1c
No known key found for this signature in database
GPG key ID: 5E427C794CBA45E8

View file

@ -83,11 +83,9 @@ fn fetch_const(args: &[P<Expr>], m: MinMax) -> Option<(MinMax, Constant, &Expr)>
} else {
None
}
} else if let Some(c) = constant_simple(&args[1]) {
Some((m, c, &args[0]))
} else {
if let Some(c) = constant_simple(&args[1]) {
Some((m, c, &args[0]))
} else {
None
}
None
}
}