Skip to content

Commit 3059603

Browse files
Merge pull request #19 from simplecloudapp/fix/config_factory_unchecked_cast_suppression
fix: removed unnecessary @Suppress("UNCHECKED_CAST")
2 parents fe29da0 + a03011d commit 3059603

File tree

1 file changed

+0
-1
lines changed
  • plugin-shared/src/main/kotlin/app/simplecloud/plugin/api/shared/config

1 file changed

+0
-1
lines changed

plugin-shared/src/main/kotlin/app/simplecloud/plugin/api/shared/config/ConfigFactory.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ class ConfigFactory<T>(
6969
config = defaultConfig
7070
}
7171

72-
@Suppress("UNCHECKED_CAST")
7372
fun getConfig(): T {
7473
return config ?: throw IllegalStateException("Configuration not loaded or invalid type")
7574
}

0 commit comments

Comments
 (0)