From 70cb8faa9414a6ee41e62c0f8bf414f9b0c9e5b2 Mon Sep 17 00:00:00 2001 From: Tibor Kaputa Date: Wed, 3 Nov 2021 22:52:22 +0100 Subject: [PATCH] some spacing corrections --- .../com/simplemobiletools/calculator/helpers/CalculatorImpl.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/CalculatorImpl.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/CalculatorImpl.kt index 453cd8bf..69783e62 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/CalculatorImpl.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/CalculatorImpl.kt @@ -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 }