Skip to content

Commit 5065a17

Browse files
denikIsaac
andcommitted
Build the target preset path in one NewPath call
Co-authored-by: Isaac <no-reply@databricks.com>
1 parent 0a771f2 commit 5065a17

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎bundle/config/mutator/apply_source_linked_deployment_preset.go‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ import (
1414
type applySourceLinkedDeploymentPreset struct{}
1515

1616
func targetPresetPath(target string) *structpath.PathNode {
17-
p := structpath.NewPath(nil, "targets", target)
18-
return structpath.NewPath(p, "presets", "source_linked_deployment")
17+
return structpath.NewPath(nil, "targets", target, "presets", "source_linked_deployment")
1918
}
2019

2120
// Apply source-linked deployment preset

0 commit comments

Comments
 (0)