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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user