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 a335f9e..d4b764f 100644 --- a/src/main/kotlin/org/domaindrivenarchitecture/provs/framework/core/Prov.kt +++ b/src/main/kotlin/org/domaindrivenarchitecture/provs/framework/core/Prov.kt @@ -61,7 +61,6 @@ open class Prov protected constructor( } private var level = 0 - private var previousLevel = 0 private var exit = false private var runInContainerWithName: String? = null @@ -270,7 +269,6 @@ open class Prov protected constructor( // init if (level == 0) { internalResults.clear() - previousLevel = -1 exit = false initProgress() @@ -283,8 +281,6 @@ open class Prov protected constructor( val internalResult = ResultLine(level, taskName, null) internalResults.add(internalResult) - previousLevel = level - level++ // call the actual task lambda @@ -329,8 +325,6 @@ open class Prov protected constructor( ProvResult(false, err = "mode unknown") } - previousLevel = level - internalResults[resultIndex].provResult = returnValue // Add failure result to output if not yet included,