From c4dc61425d8f20156b97a8699a9c04ad22f70459 Mon Sep 17 00:00:00 2001 From: JT Date: Mon, 7 Jun 2021 18:39:23 +1200 Subject: [PATCH] Simpler parse improvement (#3566) --- crates/nu-parser/src/parse.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/nu-parser/src/parse.rs b/crates/nu-parser/src/parse.rs index 6d6565103..3f7d1967b 100644 --- a/crates/nu-parser/src/parse.rs +++ b/crates/nu-parser/src/parse.rs @@ -897,10 +897,7 @@ fn parse_arg( // before anything else, try to see if this is a number in paranthesis if lite_arg.item.starts_with('(') { - let (expr, err) = parse_full_column_path(&lite_arg, scope); - if err.is_none() { - return (expr, None); - } + return parse_full_column_path(&lite_arg, scope); } match expected_type {