perf: 订阅可空字段移除非空默认值

This commit is contained in:
lisonge 2023-11-05 22:33:15 +08:00
parent 67411fe41e
commit f90ff14621

View File

@ -199,12 +199,10 @@ data class SubscriptionRaw(
matches = (getStringIArray(
rulesJson, "matches"
) ?: emptyList()),
excludeMatches = (getStringIArray(
rulesJson, "excludeMatches"
) ?: emptyList()),
excludeMatches = getStringIArray(rulesJson, "excludeMatches"),
key = getInt(rulesJson, "key"),
name = getString(rulesJson, "name"),
preKeys = getIntIArray(rulesJson, "preKeys") ?: emptyList(),
preKeys = getIntIArray(rulesJson, "preKeys"),
action = getString(rulesJson, "action"),
matchLauncher = getBoolean(rulesJson, "matchLauncher"),
quickFind = getBoolean(rulesJson, "quickFind"),