remove redundant variable

This commit is contained in:
ansgarz 2024-12-30 22:17:40 +01:00
parent b75bcf5338
commit f25a28d11a

View file

@ -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,