From 332978cfa1aa6f9a4cdbae59084c1c8c8a051f57 Mon Sep 17 00:00:00 2001 From: az Date: Wed, 5 Apr 2023 18:54:08 +0200 Subject: [PATCH] [skip ci] add comment --- .../org/domaindrivenarchitecture/provs/framework/core/Prov.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/org/domaindrivenarchitecture/provs/framework/core/Prov.kt b/src/main/kotlin/org/domaindrivenarchitecture/provs/framework/core/Prov.kt index 608c462..adb2f11 100644 --- a/src/main/kotlin/org/domaindrivenarchitecture/provs/framework/core/Prov.kt +++ b/src/main/kotlin/org/domaindrivenarchitecture/provs/framework/core/Prov.kt @@ -316,6 +316,7 @@ open class Prov protected constructor( // which is the case if the result was not part of another subtask but created and returned by the lambda itself. // Success results do not need to be added here as they don't change the overall success evaluation, // whereas the failure results may have a useful error message, which should be in the output. + // Only direct result objects are added, but not result objects that were passed from a subtask as they are already handled in the subtask. if (!resultOfTaskLambda.success && (resultIndex < internalResults.size - 1) && (resultOfTaskLambda != internalResults[resultIndex + 1].provResult)) { internalResults.add(ResultLine(level + 1, "<>", resultOfTaskLambda)) }