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
1 changed files with 2 additions and 1 deletions

View File

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