From 39467b62add9df5ea0c61be49746a0add53e43ce Mon Sep 17 00:00:00 2001 From: Him188 Date: Fri, 18 Nov 2022 20:07:27 +0000 Subject: [PATCH] fix formatting --- .../mirai-console/src/internal/plugin/JvmPluginInternal.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mirai-console/backend/mirai-console/src/internal/plugin/JvmPluginInternal.kt b/mirai-console/backend/mirai-console/src/internal/plugin/JvmPluginInternal.kt index 9e2960aa2c..cf5088c599 100644 --- a/mirai-console/backend/mirai-console/src/internal/plugin/JvmPluginInternal.kt +++ b/mirai-console/backend/mirai-console/src/internal/plugin/JvmPluginInternal.kt @@ -128,10 +128,10 @@ internal abstract class JvmPluginInternal( val except = try { javaClass.getDeclaredAnnotation(ConsoleJvmPluginFuncCallbackStatusExcept.OnEnable::class.java) - }catch(e: Throwable){ + } catch (e: Throwable) { null } - + kotlin.runCatching { onEnable() }.fold(