Fix code style

This commit is contained in:
2022-08-07 22:12:00 +08:00
parent b6366990ef
commit ec90ab589a
2 changed files with 2 additions and 2 deletions

View File

@@ -318,7 +318,7 @@ object YukiHookAPI {
fun encase(baseContext: Context?, initiate: PackageParam.() -> Unit) {
isLoadedFromBaseContext = true
when {
YukiHookBridge.hasXposedBridge && baseContext != null -> initiate.invoke(baseContext.packageParam.apply { printSplashLog() })
YukiHookBridge.hasXposedBridge && baseContext != null -> initiate(baseContext.packageParam.apply { printSplashLog() })
else -> printNoXposedEnvLog()
}
}

View File

@@ -368,7 +368,7 @@ class YukiHookModulePrefs private constructor(private var context: Context? = nu
* - ❗每次调用都会获取实时的数据 - 不受缓存控制 - 请勿在高并发场景中使用
* @return [HashMap] 全部类型的键值数组
*/
fun all() = HashMap<String, Any?>().apply {
fun all() = hashMapOf<String, Any?>().apply {
if (isXposedEnvironment)
xPref.all.forEach { (k, v) -> this[k] = v }
else sPref.all.forEach { (k, v) -> this[k] = v }