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,