Skip to content

Commit

Permalink
fix bvorke code
Browse files Browse the repository at this point in the history
  • Loading branch information
ohemilyy committed Sep 7, 2023
1 parent 63ad364 commit 5ccd5c1
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ suspend inline fun <reified T: Stats> RequestBody.getLocalStats(
crossinline exitAction: () -> Unit) {
val properties = T::class.declaredMemberProperties
val members = mutableListOf<String>()
val membersFallback = mutableListOf<String>()
properties.forEach { property ->
val propertyReflection = property::class
val fieldName = propertyReflection.findAnnotation<SerialName>()?.value
Expand All @@ -41,13 +40,11 @@ suspend inline fun <reified T: Stats> RequestBody.getLocalStats(
Method.SUFFIX -> "${fixMap[property.name]}_$mode"
Method.PREFIX -> "${mode}_${fixMap[property.name]}"
}
membersFallback += property.name
} else {
members += when (method) {
Method.SUFFIX -> "${fieldName}_$mode"
Method.PREFIX -> "${mode}_$fieldName"
}
membersFallback += fieldName
}
}

Expand Down

0 comments on commit 5ccd5c1

Please sign in to comment.