From 6bdc91b4bda1497e785af695769acae91e8e7064 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Fri, 6 Dec 2024 19:46:33 +0100 Subject: feat: Add logging toggle to options --- src/main/kotlin/moe/nea/ledger/utils/DIProvider.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main/kotlin/moe/nea/ledger/utils/DIProvider.kt') diff --git a/src/main/kotlin/moe/nea/ledger/utils/DIProvider.kt b/src/main/kotlin/moe/nea/ledger/utils/DIProvider.kt index 3cedf40..98d1bbc 100644 --- a/src/main/kotlin/moe/nea/ledger/utils/DIProvider.kt +++ b/src/main/kotlin/moe/nea/ledger/utils/DIProvider.kt @@ -30,9 +30,7 @@ fun interface DIProvider : BaseDIProvider { }.toTypedArray() val instance = cons.newInstance(*typArgs) for (it in clazz.fields) { - if (it.getAnnotation(Inject::class.java) != null) { - continue - } + if (it.getAnnotation(Inject::class.java) == null) continue it.set(instance, di.provide(it.type, it)) } instance -- cgit