From 952876837ff93fc8423b10c98361b6e73ce85447 Mon Sep 17 00:00:00 2001 From: Luca Piccinelli Date: Mon, 28 Jun 2021 10:38:05 +0200 Subject: [PATCH] bugfix on errorTitle --- README.md | 4 ++-- pom.xml | 2 +- src/main/kotlin/io/konad/Result.kt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 84fc78f..b693f81 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ add in pom.xml io.github.lucapiccinelli konad - 1.2.4 + 1.2.5 ``` @@ -46,7 +46,7 @@ add in pom.xml add in build.gradle ```groovy dependencies { - implementation "io.github.lucapiccinelli:konad:1.2.4" + implementation "io.github.lucapiccinelli:konad:1.2.5" } ``` diff --git a/pom.xml b/pom.xml index 9bb9db7..309b52a 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ io.github.lucapiccinelli konad - 1.2.4 + 1.2.5 jar io.github.lucapiccinelli konad diff --git a/src/main/kotlin/io/konad/Result.kt b/src/main/kotlin/io/konad/Result.kt index ab63bc2..71d9394 100644 --- a/src/main/kotlin/io/konad/Result.kt +++ b/src/main/kotlin/io/konad/Result.kt @@ -68,7 +68,7 @@ sealed class Result: ApplicativeFunctorKind, MonadKind this is Errors -> copy( error = error.copy(title = (error.title?.run { "$title$separator${error.title}" } ?: title)), - prev = prev?.run { errorTitle(title) as Errors }) + prev = prev?.run { errorTitle(title, separator) as Errors }) } override fun mapK(fn: (T) -> R): FunctorKind = map(fn)