mirror of
https://github.com/nushell/nushell.git
synced 2024-11-15 21:14:40 +01:00
Switch next_if to next as we already know it's of type Binary
This commit is contained in:
parent
112ebe1842
commit
260838e5ea
@ -71,7 +71,7 @@ fn first_helper(
|
|||||||
if input_peek.peek().is_some() {
|
if input_peek.peek().is_some() {
|
||||||
match input_peek.peek().unwrap().get_type() {
|
match input_peek.peek().unwrap().get_type() {
|
||||||
Type::Binary => {
|
Type::Binary => {
|
||||||
match &mut input_peek.next_if(|val| val.get_type() == Type::Binary) {
|
match &mut input_peek.next() {
|
||||||
Some(v) => match &v {
|
Some(v) => match &v {
|
||||||
Value::Binary { val, .. } => {
|
Value::Binary { val, .. } => {
|
||||||
let bytes = val;
|
let bytes = val;
|
||||||
|
Loading…
Reference in New Issue
Block a user