1
0
mirror of https://github.com/go-task/task.git synced 2025-11-23 22:24:45 +02:00

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

@@ -17,10 +17,8 @@ type StdinNode struct {
}
func NewStdinNode(dir string) (*StdinNode, error) {
base := NewBaseNode()
base.dir = dir
return &StdinNode{
BaseNode: base,
BaseNode: NewBaseNode(dir),
}, nil
}