Skip to content

Commit 5a62977

Browse files
committed
Rename processNestedStepsEnv func to processNestedSteps
1 parent 12d98ee commit 5a62977

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

plugin.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,8 @@ func setBuild(build *Build) {
390390
}
391391
}
392392

393-
// processNestedStepsEnv recursively processes environment variables for nested steps
394-
func processNestedStepsEnv(steps []Step, env map[string]string) {
393+
// processNestedSteps recursively processes nested steps, handling environment variables and notify configurations
394+
func processNestedSteps(steps []Step, env map[string]string) {
395395
for i := range steps {
396396
// Parse the step's own env
397397
steps[i].Env, _ = parseEnv(steps[i].RawEnv)
@@ -423,7 +423,7 @@ func processNestedStepsEnv(steps []Step, env map[string]string) {
423423

424424
// Recursively process any nested steps
425425
if len(steps[i].Steps) > 0 {
426-
processNestedStepsEnv(steps[i].Steps, env)
426+
processNestedSteps(steps[i].Steps, env)
427427
}
428428
}
429429
}
@@ -454,9 +454,9 @@ func appendEnv(watch *WatchConfig, env map[string]string) {
454454

455455
watch.Step.RawEnv = nil
456456
watch.Step.Build.RawEnv = nil
457-
// Process nested steps' environment variables
457+
// Process nested steps
458458
if len(watch.Step.Steps) > 0 {
459-
processNestedStepsEnv(watch.Step.Steps, env)
459+
processNestedSteps(watch.Step.Steps, env)
460460
}
461461
watch.RawPath = nil
462462
watch.RawSkipPath = nil

0 commit comments

Comments
 (0)