Skip to content

Commit

Permalink
EIT-3042 - lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottAntonacAP committed Aug 4, 2023
1 parent af41ab2 commit e3f33c6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ internal sealed class AfterpayInstalment {
currencyLocales.isEmpty() -> {
return NotAvailable(
minimumAmount = null,
maximumAmount = "0"
maximumAmount = "0",
)
}
currencyLocales.count() == 1 -> currencyLocales.first()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class AfterpayEnabled {

@Test
fun `Afterpay is enabled for merchant locales`() {
for(locale in validMerchantLocales) {
for (locale in validMerchantLocales) {
Afterpay.setConfiguration(
minimumAmount = "10.00",
maximumAmount = "1000.00",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ class AfterpayInstalmentLocaleTest {
fun `unavailable instalment in fr-CA locale`() {
val instalments = createAllUnavailableInstalments(oneHundredAndTwenty, Locales.FR_CA)


assertEquals("$10 AUD", instalments.aud.minimumAmount)
assertEquals("10 $", instalments.cad.minimumAmount)
assertEquals("£10", instalments.gbp.minimumAmount)
Expand Down
4 changes: 2 additions & 2 deletions afterpay/src/test/kotlin/com/afterpay/android/AfterpayTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AfterpayTest {
Locale.ITALY,
Locale.FRANCE,
Locale("es", "ES"),
Locale.JAPAN
Locale.JAPAN,
)

@Test
Expand Down Expand Up @@ -119,7 +119,7 @@ class AfterpayTest {
@Test
fun `setConfiguration throws for a locale not in the valid set`() {
assertThrows(IllegalArgumentException::class.java) {
for(locale in invalidMerchantLocales) {
for (locale in invalidMerchantLocales) {
Afterpay.setConfiguration(
minimumAmount = "10.00",
maximumAmount = "1000.00",
Expand Down

0 comments on commit e3f33c6

Please sign in to comment.