From e8957ee23eef5e62017cc15f799b059ef539337a Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Tue, 25 Jun 2024 08:43:08 +0200 Subject: [PATCH] . --- bundle/config/mutator/translate_paths_jobs.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bundle/config/mutator/translate_paths_jobs.go b/bundle/config/mutator/translate_paths_jobs.go index 6442f3c793..60cc8bb9aa 100644 --- a/bundle/config/mutator/translate_paths_jobs.go +++ b/bundle/config/mutator/translate_paths_jobs.go @@ -18,7 +18,7 @@ func noSkipRewrite(string) bool { return false } -func perTaskRewritePatterns(t *translateContext, base dyn.Pattern) []jobRewritePattern { +func rewritePatterns(t *translateContext, base dyn.Pattern) []jobRewritePattern { return []jobRewritePattern{ { base.Append(dyn.Key("notebook_task"), dyn.Key("notebook_path")), @@ -83,8 +83,8 @@ func (t *translateContext) jobRewritePatterns() []jobRewritePattern { }, } - taskPatterns := perTaskRewritePatterns(t, base) - forEachPatterns := perTaskRewritePatterns(t, base.Append(dyn.Key("for_each_task"), dyn.Key("task"))) + taskPatterns := rewritePatterns(t, base) + forEachPatterns := rewritePatterns(t, base.Append(dyn.Key("for_each_task"), dyn.Key("task"))) allPatterns := append(taskPatterns, jobEnvironmentsPatterns...) allPatterns = append(allPatterns, forEachPatterns...) return allPatterns