fix: don't call Apply() twice
For some reason this was called by `Run()`. All tests pass without it, so I'm not sure why it was there. Fixes #481
This commit is contained in:
@@ -803,11 +803,6 @@ func (c *Context) RunNode(node *Node, binds ...interface{}) (err error) {
|
||||
if len(methods) == 0 {
|
||||
return fmt.Errorf("no Run() method found in hierarchy of %s", c.Selected().Summary())
|
||||
}
|
||||
_, err = c.Apply()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
for _, method := range methods {
|
||||
if err = callFunction(method.method, method.binds); err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user