From f9a80ac6158be65bf3395854188e83c86861acff Mon Sep 17 00:00:00 2001 From: Mygod Date: Mon, 5 Oct 2020 05:50:02 +0800 Subject: [PATCH] Remove unnecessary parentheses --- .../main/java/com/github/shadowsocks/plugin/PluginManager.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/github/shadowsocks/plugin/PluginManager.kt b/core/src/main/java/com/github/shadowsocks/plugin/PluginManager.kt index babf0b9932..db0738859b 100644 --- a/core/src/main/java/com/github/shadowsocks/plugin/PluginManager.kt +++ b/core/src/main/java/com/github/shadowsocks/plugin/PluginManager.kt @@ -158,8 +158,8 @@ object PluginManager { } val provider = providers.single().providerInfo val options = configuration.getOptions { provider.loadString(PluginContract.METADATA_KEY_DEFAULT_CONFIG) } - val isV2 = (provider.applicationInfo.metaData?.getString(PluginContract.METADATA_KEY_VERSION) - ?.substringBefore('.')?.toIntOrNull() ?: 0) >= 2 + val isV2 = provider.applicationInfo.metaData?.getString(PluginContract.METADATA_KEY_VERSION) + ?.substringBefore('.')?.toIntOrNull() ?: 0 >= 2 var failure: Throwable? = null try { initNativeFaster(provider)?.also { return InitResult(it, options, isV2) }