mirror of
https://github.com/go-task/task.git
synced 2026-06-11 09:51:50 +00:00
refactor: slightly improved NewBaseNode API
This commit is contained in:
@@ -20,8 +20,7 @@ type HTTPNode struct {
|
||||
}
|
||||
|
||||
func NewHTTPNode(l *logger.Logger, entrypoint, dir string, insecure bool, opts ...NodeOption) (*HTTPNode, error) {
|
||||
base := NewBaseNode(opts...)
|
||||
base.dir = dir
|
||||
base := NewBaseNode(dir, opts...)
|
||||
url, err := url.Parse(entrypoint)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user