remove a check at handleOperation
This commit is contained in:
parent
e004d15c10
commit
80f5637a9f
|
@ -122,9 +122,6 @@ public class CalculatorImpl {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void handleOperation(String operation) {
|
public void handleOperation(String operation) {
|
||||||
if (lastKey.equals(operation))
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (lastKey.equals(Constants.DIGIT))
|
if (lastKey.equals(Constants.DIGIT))
|
||||||
handleResult();
|
handleResult();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue