Suppressed warning

This commit is contained in:
Auxilor
2022-01-28 09:30:57 +00:00
parent 23a297b8e3
commit b78fc2fb66

View File

@@ -47,6 +47,8 @@ class EcoHandler : EcoSpigotPlugin(), Handler {
if (this.configYml.getBool("mysql.enabled"))
MySQLDataHandler(this) else YamlDataHandler(this)
)
@Suppress("RedundantNullableReturnType")
private val keyFactory: InternalNamespacedKeyFactory? =
if (this.configYml.getBool("use-safer-namespacedkey-creation"))
SafeInternalNamespacedKeyFactory() else FastInternalNamespacedKeyFactory()