Commit f9a80ac6 authored by Mygod's avatar Mygod

Remove unnecessary parentheses

parent cd6a1f1d
...@@ -158,8 +158,8 @@ object PluginManager { ...@@ -158,8 +158,8 @@ object PluginManager {
} }
val provider = providers.single().providerInfo val provider = providers.single().providerInfo
val options = configuration.getOptions { provider.loadString(PluginContract.METADATA_KEY_DEFAULT_CONFIG) } val options = configuration.getOptions { provider.loadString(PluginContract.METADATA_KEY_DEFAULT_CONFIG) }
val isV2 = (provider.applicationInfo.metaData?.getString(PluginContract.METADATA_KEY_VERSION) val isV2 = provider.applicationInfo.metaData?.getString(PluginContract.METADATA_KEY_VERSION)
?.substringBefore('.')?.toIntOrNull() ?: 0) >= 2 ?.substringBefore('.')?.toIntOrNull() ?: 0 >= 2
var failure: Throwable? = null var failure: Throwable? = null
try { try {
initNativeFaster(provider)?.also { return InitResult(it, options, isV2) } initNativeFaster(provider)?.also { return InitResult(it, options, isV2) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment