treeprint icon indicating copy to clipboard operation
treeprint copied to clipboard

Wrong call to recursive fn in FindByValue()

Open rskumar opened this issue 4 years ago • 1 comments

https://github.com/xlab/treeprint/blob/d235141453da96e0dea798a1ac83b0847159e622/treeprint.go#L118

I think it should be -

if v := node.FindByValue(value); v != nil {
	return v
}

rskumar avatar Dec 27 '20 21:12 rskumar

Is it fixed?

Romerolweb avatar Jan 10 '25 00:01 Romerolweb