aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/KSerializable.kt
diff options
context:
space:
mode:
authorDavid Cole <40234707+DavidArthurCole@users.noreply.github.com>2024-10-11 12:42:33 -0400
committerGitHub <noreply@github.com>2024-10-11 18:42:33 +0200
commit7c2d4ed566246513bc438272e436627412147d62 (patch)
treeedf8d3d01a49bd7c4f5993bae6367613c32fcaac /src/main/java/at/hannibal2/skyhanni/utils/KSerializable.kt
parent0671e35163d55ab0f940aa6806a0d7bfb2876429 (diff)
downloadskyhanni-7c2d4ed566246513bc438272e436627412147d62.tar.gz
skyhanni-7c2d4ed566246513bc438272e436627412147d62.tar.bz2
skyhanni-7c2d4ed566246513bc438272e436627412147d62.zip
Backend: Detekt Fixes Part 6 (#2657)
Co-authored-by: Cal <cwolfson58@gmail.com> Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/KSerializable.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/KSerializable.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/KSerializable.kt b/src/main/java/at/hannibal2/skyhanni/utils/KSerializable.kt
index ad90ff863..8f40284aa 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/KSerializable.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/KSerializable.kt
@@ -47,7 +47,9 @@ class KotlinTypeAdapterFactory : TypeAdapterFactory {
val extraDataParam = primaryConstructor.parameters
.find { it.findAnnotation<ExtraData>() != null && typeOf<MutableMap<String, JsonElement>>().isSubtypeOf(it.type) }
?.let { param ->
- param to kotlinClass.memberProperties.find { it.name == param.name && it.returnType.isSubtypeOf(typeOf<Map<String, JsonElement>>()) } as KProperty1<Any, Map<String, JsonElement>>
+ param to kotlinClass.memberProperties.find {
+ it.name == param.name && it.returnType.isSubtypeOf(typeOf<Map<String, JsonElement>>())
+ } as KProperty1<Any, Map<String, JsonElement>>
}
val parameterInfos = params.map { param ->
ParameterInfo(