Skip to content

Commit ed24122

Browse files
authored
Merge pull request #133 from linwoain/patch-1
Update DefaultServiceParser.kt
2 parents b6fd0c6 + 74c7fc8 commit ed24122

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

router/src/main/java/com/therouter/router/autowired/DefaultServiceParser.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ class DefaultServiceParser : AutowiredParser {
88
override fun <T> parse(type: String?, target: Any?, item: AutowiredItem?): T? {
99
if (item != null && item.id == 0) {
1010
try {
11-
(Class.forName(item.type) as? Class<T>)?.let { return@let TheRouter.get(it) }
11+
(Class.forName(item.type) as? Class<T>)?.let { return TheRouter.get(it) }
1212
} catch (e: Exception) {
1313
}
1414
}
1515
return null
1616
}
17-
}
17+
}

0 commit comments

Comments
 (0)