From 54a075b7e87473d3c5143a3ebc11bad16ddd6e3a Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Thu, 26 Oct 2023 20:54:07 +0200 Subject: [PATCH] Changed name --- .../kotlin/de/twomartens/timetable/types/NonEmptyString.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module-common/src/main/kotlin/de/twomartens/timetable/types/NonEmptyString.kt b/module-common/src/main/kotlin/de/twomartens/timetable/types/NonEmptyString.kt index 789f49b..f43f734 100644 --- a/module-common/src/main/kotlin/de/twomartens/timetable/types/NonEmptyString.kt +++ b/module-common/src/main/kotlin/de/twomartens/timetable/types/NonEmptyString.kt @@ -1,9 +1,9 @@ package de.twomartens.timetable.types @JvmInline -value class NonEmptyString(val name: String) { +value class NonEmptyString(val value: String) { init { - require(name.isNotBlank()) { + require(value.isNotBlank()) { "Name must not be blank" } }