Contentious lint to contract into single if let
This commit is contained in:
parent
d2bf82d22b
commit
6c42f2c475
|
@ -308,21 +308,21 @@ pub fn parse_for(working_set: &mut StateWorkingSet, lite_command: &LiteCommand)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Let's get our block and make sure it has the right signature
|
// Let's get our block and make sure it has the right signature
|
||||||
if let Some(arg) = call.positional_nth(2) {
|
if let Some(
|
||||||
match arg {
|
Expression {
|
||||||
Expression {
|
expr: Expr::Block(block_id),
|
||||||
expr: Expr::Block(block_id),
|
..
|
||||||
..
|
}
|
||||||
}
|
| Expression {
|
||||||
| Expression {
|
expr: Expr::RowCondition(block_id),
|
||||||
expr: Expr::RowCondition(block_id),
|
..
|
||||||
..
|
},
|
||||||
} => {
|
) = call.positional_nth(2)
|
||||||
let block = working_set.get_block_mut(*block_id);
|
{
|
||||||
|
{
|
||||||
|
let block = working_set.get_block_mut(*block_id);
|
||||||
|
|
||||||
block.signature = Box::new(sig);
|
block.signature = Box::new(sig);
|
||||||
}
|
|
||||||
_ => {}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user