Skip to content

Commit

Permalink
Added two TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
ArkoSammy12 committed Dec 22, 2024
1 parent 81666a9 commit c04ba1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ open class ConfigManagerBuilder(
fun <E : Any, S : SerializableType<*>> listSetting(settingName: String, defaultValue: List<E>, builder: ListSettingBuilder<E, S>.() -> Unit): ElementPath =
this.setting(settingName, defaultValue, ::ListSettingBuilder, builder)

// TODO: Fix this
fun stringListSetting(settingName: String, defaultValue: List<String>, builder: StringListSettingBuilder.() -> Unit): ElementPath =
this.listSetting<String, StringType>(settingName, defaultValue) {
builder(this as StringListSettingBuilder)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ open class SectionBuilder(
fun <E : Any, S : SerializableType<*>> listSetting(settingName: String, defaultValue: List<E>, builder: ListSettingBuilder<E, S>.() -> Unit): ElementPath =
this.setting(settingName, defaultValue, ::ListSettingBuilder, builder)

// TODO: Fix this
fun stringListSetting(settingName: String, defaultValue: List<String>, builder: StringListSettingBuilder.() -> Unit): ElementPath =
this.listSetting<String, StringType>(settingName, defaultValue) {
builder(this as StringListSettingBuilder)
Expand Down

0 comments on commit c04ba1d

Please sign in to comment.