From c083d49ea1ae3f500997e1b4937d3f55d376580d Mon Sep 17 00:00:00 2001 From: AnasNaouchi Date: Mon, 9 Sep 2024 15:37:43 +0700 Subject: [PATCH] Fix `if` syntax --- .../co/omise/android/ui/AuthorizingPaymentActivity.kt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sdk/src/main/java/co/omise/android/ui/AuthorizingPaymentActivity.kt b/sdk/src/main/java/co/omise/android/ui/AuthorizingPaymentActivity.kt index 62667bd0..87560b28 100644 --- a/sdk/src/main/java/co/omise/android/ui/AuthorizingPaymentActivity.kt +++ b/sdk/src/main/java/co/omise/android/ui/AuthorizingPaymentActivity.kt @@ -305,12 +305,8 @@ class AuthorizingPaymentActivity : AppCompatActivity() { resultCode: Int, data: Intent?, ) { - if (requestCode == REQUEST_EXTERNAL_CODE) { - if (requestCode == REQUEST_EXTERNAL_CODE && isDeepLinkSuccOpened) { - finishActivityWithSuccessful(data) - } - finishActivityWithSuccessful(data) - } + if (requestCode == REQUEST_EXTERNAL_CODE && isDeepLinkSuccOpened) { + finishActivityWithSuccessful(data) } }