From b5329fe4ec4b5da75e3eb8b5e4f3f24ff8119ede Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BD=C3=A1dn=C3=ADk?= Date: Wed, 27 Oct 2021 00:34:39 +0300 Subject: [PATCH] Cleanup; Remove redundant UTF-8 check --- crates/nu-parser/src/parser.rs | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/crates/nu-parser/src/parser.rs b/crates/nu-parser/src/parser.rs index 8087ffdc1a..17c9d76ac7 100644 --- a/crates/nu-parser/src/parser.rs +++ b/crates/nu-parser/src/parser.rs @@ -1697,26 +1697,8 @@ pub fn parse_import_pattern( ) -> (ImportPattern, Option) { let mut error = None; - // return ( - // ImportPattern { - // head: vec![], - // members: vec![], - // }, - // Some(ParseError::MissingImportPattern(span)), - // ); - - // return ( - // ImportPattern { - // head: vec![], - // members: vec![], - // }, - // Some(ParseError::WrongImportPattern(span)), - // ); - let head = if let Some(head_span) = spans.get(0) { - let (head_expr, err) = parse_string(working_set, *head_span); - error = error.or(err); - working_set.get_span_contents(head_expr.span).to_vec() + working_set.get_span_contents(*head_span).to_vec() } else { return ( ImportPattern {