Skip to content

Commit e55f2eb

Browse files
committed
cleanup
1 parent b0372c5 commit e55f2eb

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

crates/nu-parser/src/parse_keywords.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,6 @@ fn parse_def_inner(
581581
}
582582
}
583583

584-
let starting_error_count = working_set.parse_errors.len();
585584
let ParsedInternalCall {
586585
call,
587586
output,
@@ -592,10 +591,6 @@ fn parse_def_inner(
592591
rest_spans,
593592
decl_id,
594593
);
595-
// This is to preserve the order of the errors so that
596-
// the check errors below come first
597-
let mut new_errors = working_set.parse_errors[starting_error_count..].to_vec();
598-
working_set.parse_errors.truncate(starting_error_count);
599594

600595
working_set.exit_scope();
601596

@@ -620,8 +615,6 @@ fn parse_def_inner(
620615
}
621616
}
622617

623-
working_set.parse_errors.append(&mut new_errors);
624-
625618
if call_kind != CallKind::Valid {
626619
return (
627620
Expression::new(working_set, Expr::Call(call), call_span, output),

0 commit comments

Comments
 (0)