refactor: slightly improved NewBaseNode API

This commit is contained in:
Pete Davison
2024-03-04 18:00:28 +00:00
parent 9a5fb38f48
commit b5df4e89c2
4 changed files with 6 additions and 10 deletions

View File

@@ -13,11 +13,11 @@ type (
}
)
func NewBaseNode(opts ...NodeOption) *BaseNode {
func NewBaseNode(dir string, opts ...NodeOption) *BaseNode {
node := &BaseNode{
parent: nil,
optional: false,
dir: "",
dir: dir,
}
// Apply options