Skip to content

Commit

Permalink
Fix detekt errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
sshropshire committed Oct 16, 2024
1 parent 21992f7 commit 4dab362
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.paypal.android.cardpayments

import com.braintreepayments.api.BrowserSwitchException
import com.paypal.android.corepayments.PayPalSDKError

internal object CardError {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ import com.paypal.android.corepayments.PayPalSDKError
sealed class CardPresentAuthChallengeResult {
data class Success(val authState: String) : CardPresentAuthChallengeResult()
data class Failure(val error: PayPalSDKError) : CardPresentAuthChallengeResult()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ sealed class CardStatus {
class VaultSuccess(val result: CardVaultResult) : CardStatus()
class VaultCanceled(val setupTokenId: String?) : CardStatus()

object NoResult: CardStatus()
object NoResult : CardStatus()
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ fun OnNewIntentEffect(callback: (newIntent: Intent) -> Unit) {
context.getActivityOrNull()?.removeOnNewIntentListener(listener)
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ import com.paypal.android.corepayments.PayPalSDKError
sealed class PayPalPresentAuthChallengeResult {
data class Success(val authState: String) : PayPalPresentAuthChallengeResult()
data class Failure(val error: PayPalSDKError) : PayPalPresentAuthChallengeResult()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ sealed class PayPalWebStatus {
class VaultSuccess(val result: PayPalWebVaultResult) : PayPalWebStatus()
object VaultCanceled : PayPalWebStatus()

object NoResult: PayPalWebStatus()
object NoResult : PayPalWebStatus()
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.paypal.android.paypalwebpayments.errors

import com.braintreepayments.api.BrowserSwitchException
import com.paypal.android.corepayments.PayPalSDKError

internal object PayPalWebCheckoutError {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ abstract class PaymentButton<C : PaymentButtonColor> @JvmOverloads constructor(
visibility = VISIBLE
}

override fun onDraw(canvas: Canvas?) {
override fun onDraw(canvas: Canvas) {
if (shape == PaymentButtonShape.PILL && shapeHasChanged) {
shape = PaymentButtonShape.PILL // force update since PILL is dependent on view height.
}
Expand Down

0 comments on commit 4dab362

Please sign in to comment.