clean up code comments
This commit is contained in:
parent
10f47b5158
commit
96c94d2fa0
|
@ -275,11 +275,13 @@ PostProcessorRunSeqLoop:
|
||||||
}
|
}
|
||||||
|
|
||||||
keep := defaultKeep
|
keep := defaultKeep
|
||||||
// When nil, go for the default. If overridden by user, use that
|
// When user has not set keep_input_artifuact
|
||||||
// instead.
|
// corePP.keepInputArtifact is nil.
|
||||||
|
// In this case, use the keepDefault provided by the postprocessor.
|
||||||
|
// When user _has_ set keep_input_atifact, go with that instead.
|
||||||
// Exception: for postprocessors that will fail/become
|
// Exception: for postprocessors that will fail/become
|
||||||
// useless if keep isn't set, force an override that still uses
|
// useless if keep isn't true, heed forceOverride and keep the
|
||||||
// post-processor preference instead of user preference.
|
// input artifact regardless of user preference.
|
||||||
if corePP.keepInputArtifact != nil {
|
if corePP.keepInputArtifact != nil {
|
||||||
if defaultKeep && *corePP.keepInputArtifact == false && forceOverride {
|
if defaultKeep && *corePP.keepInputArtifact == false && forceOverride {
|
||||||
log.Printf("The %s post-processor forces "+
|
log.Printf("The %s post-processor forces "+
|
||||||
|
@ -287,7 +289,7 @@ PostProcessorRunSeqLoop:
|
||||||
"build chain. User-set keep_input_artifact=false will be"+
|
"build chain. User-set keep_input_artifact=false will be"+
|
||||||
"ignored.", corePP.processorType)
|
"ignored.", corePP.processorType)
|
||||||
} else {
|
} else {
|
||||||
// User overrides default
|
// User overrides default.
|
||||||
keep = *corePP.keepInputArtifact
|
keep = *corePP.keepInputArtifact
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue