Clean up
This commit is contained in:
parent
e858e7e20f
commit
cb56fd05cd
@ -103,11 +103,6 @@ impl AbstractNode for Assignment {
|
|||||||
|
|
||||||
Value::float(sum)
|
Value::float(sum)
|
||||||
}
|
}
|
||||||
(ValueInner::Integer(_) | ValueInner::Float(_), _) => {
|
|
||||||
return Err(RuntimeError::ValidationFailure(
|
|
||||||
ValidationError::ExpectedIntegerOrFloat(self.statement.position),
|
|
||||||
))
|
|
||||||
}
|
|
||||||
_ => {
|
_ => {
|
||||||
return Err(RuntimeError::ValidationFailure(
|
return Err(RuntimeError::ValidationFailure(
|
||||||
ValidationError::ExpectedIntegerOrFloat(self.identifier.position),
|
ValidationError::ExpectedIntegerOrFloat(self.identifier.position),
|
||||||
@ -144,11 +139,6 @@ impl AbstractNode for Assignment {
|
|||||||
|
|
||||||
Value::float(difference)
|
Value::float(difference)
|
||||||
}
|
}
|
||||||
(ValueInner::Integer(_) | ValueInner::Float(_), _) => {
|
|
||||||
return Err(RuntimeError::ValidationFailure(
|
|
||||||
ValidationError::ExpectedIntegerOrFloat(self.statement.position),
|
|
||||||
))
|
|
||||||
}
|
|
||||||
_ => {
|
_ => {
|
||||||
return Err(RuntimeError::ValidationFailure(
|
return Err(RuntimeError::ValidationFailure(
|
||||||
ValidationError::ExpectedIntegerOrFloat(self.identifier.position),
|
ValidationError::ExpectedIntegerOrFloat(self.identifier.position),
|
||||||
|
Loading…
Reference in New Issue
Block a user