From 7c2d4ed566246513bc438272e436627412147d62 Mon Sep 17 00:00:00 2001 From: David Cole <40234707+DavidArthurCole@users.noreply.github.com> Date: Fri, 11 Oct 2024 12:42:33 -0400 Subject: Backend: Detekt Fixes Part 6 (#2657) Co-authored-by: Cal Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- src/main/java/at/hannibal2/skyhanni/utils/KSerializable.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/utils/KSerializable.kt') 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() != null && typeOf>().isSubtypeOf(it.type) } ?.let { param -> - param to kotlinClass.memberProperties.find { it.name == param.name && it.returnType.isSubtypeOf(typeOf>()) } as KProperty1> + param to kotlinClass.memberProperties.find { + it.name == param.name && it.returnType.isSubtypeOf(typeOf>()) + } as KProperty1> } val parameterInfos = params.map { param -> ParameterInfo( -- cgit