diff --git a/crates/nu-command/src/filters/last.rs b/crates/nu-command/src/filters/last.rs index 57223981f7..a878076801 100644 --- a/crates/nu-command/src/filters/last.rs +++ b/crates/nu-command/src/filters/last.rs @@ -66,10 +66,10 @@ fn rows_to_skip(count: i64, rows: Option) -> i64 { }; if end_rows_desired < count { - return count - end_rows_desired; + count - end_rows_desired } else { - return 0; - }; + 0 + } } #[cfg(test)]