clean up a tad

This commit is contained in:
gluaxspeed 2021-02-02 09:47:54 -05:00
parent 1cbbee4517
commit eb15269437

View File

@ -286,14 +286,12 @@ impl<'ast> From<SelfPostfixExpression<'ast>> for Expression {
// Handle calls, should only ever come after self. or self::
match expression.call {
Some(function) => {
return Expression::Call(CallExpression {
Some(function) => Expression::Call(CallExpression {
function: Box::new(final_expression),
arguments: function.expressions.into_iter().map(Expression::from).collect(),
span: Span::from(function.span),
});
}
None => return final_expression,
}),
None => final_expression,
}
}
}