Small cleanup

This commit is contained in:
mcarton
2016-06-21 23:53:24 +02:00
parent f37c9adbd9
commit f6ba217c1c

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]) {
} else if let Some(c) = constant_simple(&args[1]) {
Some((m, c, &args[0]))
} else {
None
}
}
}