From c622c1b4fe27ab3d24945b6f795c8ca249853b6f Mon Sep 17 00:00:00 2001 From: Him188 Date: Wed, 9 Sep 2020 21:42:38 +0800 Subject: [PATCH] Fix NotNullMutableMap --- .../net/mamoe/mirai/console/data/PluginDataExtensions.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/data/PluginDataExtensions.kt b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/data/PluginDataExtensions.kt index 4681f1394..57437271c 100644 --- a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/data/PluginDataExtensions.kt +++ b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/data/PluginDataExtensions.kt @@ -45,11 +45,6 @@ public object PluginDataExtensions { return super.getOrDefault(key, defaultValue) } - override fun put(key: K, value: V): V { - return delegate.put(key, value) - ?: error("Internal error: delegate.put(key, value) returned null for NotNullMutableMap.put") - } - @Deprecated( "putIfAbsent on NotNullMutableMap always does nothing.", level = DeprecationLevel.WARNING,