Skip to content

Commit 804ee96

Browse files
committed
Do not query rules in db.
Prevent name case sensitive problem.
1 parent 8a4e41f commit 804ee96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/com/absinthe/rulesbundle/RuleRepository.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class RuleRepository(private val ruleDao: RuleDao) {
2424
}
2525
}
2626

27-
suspend fun getRule(name: String) = rules?.get(name) ?: ruleDao.getRule(name)
27+
fun getRule(name: String) = rules?.get(name)
2828

2929
suspend fun insertRules(rules: List<RuleEntity>) {
3030
ruleDao.insertRules(rules)

0 commit comments

Comments
 (0)