Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return existing builder from PathBuilder.Root() instead of creating a new one. #420

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add comment to reference corresponding PR
  • Loading branch information
tobb10001 committed Jan 15, 2024
commit fdcc8ba117a8c23710f38b61ce00fa243da0ac93
1 change: 1 addition & 0 deletions path_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func TestPathBuilder(t *testing.T) {
}

func TestPathBuilderNoChain(t *testing.T) {
// See PR #420.
builder := yaml.PathBuilder{}
builder.Root()
builder.Child("a")
Expand Down