Skip to content

Commit 623e8f7

Browse files
committed
refactor(parser): cleanup some unnecessary code introduced recently
1 parent 529f6ec commit 623e8f7

File tree

3 files changed

+125
-236
lines changed

3 files changed

+125
-236
lines changed

crates/nu-engine/src/compile/call.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub(crate) fn compile_call(
3636
"match" => {
3737
return compile_match(working_set, builder, call, redirect_modes, io_reg);
3838
}
39-
"const" => {
39+
"const" | "export const" => {
4040
// This differs from the behavior of the const command, which adds the const value
4141
// to the stack. Since `load-variable` also checks `engine_state` for the variable
4242
// and will get a const value though, is it really necessary to do that?

0 commit comments

Comments
 (0)