diff --git a/src/main/kotlin/com/natpryce/konfig/property_types.kt b/src/main/kotlin/com/natpryce/konfig/property_types.kt index 16ed240..2dc8908 100644 --- a/src/main/kotlin/com/natpryce/konfig/property_types.kt +++ b/src/main/kotlin/com/natpryce/konfig/property_types.kt @@ -103,7 +103,7 @@ inline fun enumType(allowed: Map) = enumType(T::cla fun enumType(enumType: Class, allowed: Map) = propertyType(enumType) { str -> allowed[str] - ?.let { ParseResult.Success(it) } + ?.let { ParseResult.Success(it) } ?: ParseResult.Failure(IllegalArgumentException("invalid value: $str; must be one of: ${allowed.keys}")) }