Skip to content

chore(deps): bump com.diffplug.gradle.spotless from 3.25.0 to 3.26.0 #2429

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id "com.diffplug.gradle.spotless" version "3.25.0"
id "com.diffplug.gradle.spotless" version "3.26.0"
}

apply plugin: 'com.android.application'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class TicketsViewModel(
qty.add(it.second)
}
}
val donation = ticketIdAndQty.map { it.third*it.second }.sum()
val donation = ticketIdAndQty.map { it.third * it.second }.sum()
tickets.value?.filter { ticketIds.contains(it.id) }?.let { tickets ->
var prices = 0F
var index = 0
Expand All @@ -130,7 +130,7 @@ class TicketsViewModel(
if (code?.value != null) {
appliedDiscountCode?.tickets?.forEach { ticketId ->
if (ticket.id == ticketId.id.toInt()) {
price -= if (code.type == AMOUNT) code.value else price*(code.value / 100)
price -= if (code.type == AMOUNT) code.value else price * (code.value / 100)
}
}
}
Expand Down