some spacing corrections

This commit is contained in:
Tibor Kaputa 2021-11-03 22:52:22 +01:00 committed by GitHub
parent 832487fbe6
commit 70cb8faa94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -147,10 +147,11 @@ class CalculatorImpl(calculator: Calculator, private val context: Context) {
secondValue = getSecondValue()
calculateResult()
if ( (lastOperation == DIVIDE || lastOperation == PERCENT) && secondValue == 0.0) {
if ((lastOperation == DIVIDE || lastOperation == PERCENT) && secondValue == 0.0) {
lastKey = DIGIT
return
}
lastKey = EQUALS
}