diff options
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger/utils')
-rw-r--r-- | src/main/kotlin/moe/nea/ledger/utils/DIProvider.kt | 4 |
1 files changed, 1 insertions, 3 deletions
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<T : Any> : BaseDIProvider<T, Unit> { }.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 |