Skip to content

Apache DataFusion SQL Query Engine

minor: remove redundant code. (#3389)

jakevin30fce22dffe7
diff --git a/datafusion/optimizer/src/eliminate_limit.rs b/datafusion/optimizer/src/eliminate_limit.rs
index 7b812869e6..45011070b4 100644
--- a/datafusion/optimizer/src/eliminate_limit.rs
+++ b/datafusion/optimizer/src/eliminate_limit.rs
@@ -85,8 +85,6 @@ fn eliminate_limit(
if *skip == 0 {
// If there is no LIMIT and OFFSET is zero, LIMIT/OFFSET can be removed
return Ok(input.as_ref().clone());
- } else {
- {}
}
}
}