mirror of
https://github.com/DanilaFe/abacus
synced 2024-12-22 07:20:09 -08:00
Remove unused elvis.
This commit is contained in:
parent
fbdf2c7e52
commit
76fcd8ec1c
|
@ -18,7 +18,6 @@ class NumberReducer(val abacus: Abacus, context: EvaluationContext) : Reducer<Nu
|
||||||
return when(treeNode){
|
return when(treeNode){
|
||||||
is NumberNode -> {
|
is NumberNode -> {
|
||||||
context.inheritedNumberImplementation.instanceForString(treeNode.number)
|
context.inheritedNumberImplementation.instanceForString(treeNode.number)
|
||||||
?: throw EvaluationException("no number implementation selected.")
|
|
||||||
}
|
}
|
||||||
is VariableNode -> {
|
is VariableNode -> {
|
||||||
val variable = context.getVariable(treeNode.variable)
|
val variable = context.getVariable(treeNode.variable)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user