mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 21:04:37 +03:00
Update xpath dependency (#507)
This commit is contained in:
4
vendor/github.com/antchfx/xpath/xpath.go
generated
vendored
4
vendor/github.com/antchfx/xpath/xpath.go
generated
vendored
@@ -2,6 +2,7 @@ package xpath
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// NodeType represents a type of XPath node.
|
||||
@@ -144,6 +145,9 @@ func Compile(expr string) (*Expr, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if qy == nil {
|
||||
return nil, fmt.Errorf(fmt.Sprintf("undeclared variable in XPath expression: %s", expr))
|
||||
}
|
||||
return &Expr{s: expr, q: qy}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user