condition: ast: deprecated inNetwork is not a member function, fix logic
This commit is contained in:
@@ -132,7 +132,7 @@ func (state *State) RegisterCondition(operator string, conditions ...string) (ce
|
|||||||
// deprecated
|
// deprecated
|
||||||
case "inNetwork":
|
case "inNetwork":
|
||||||
args := call.Args()
|
args := call.Args()
|
||||||
if call.IsMemberFunction() && len(args) == 2 {
|
if !call.IsMemberFunction() && len(args) == 2 {
|
||||||
// we have a network select function
|
// we have a network select function
|
||||||
switch args[1].Kind() {
|
switch args[1].Kind() {
|
||||||
case ast.LiteralKind:
|
case ast.LiteralKind:
|
||||||
|
Reference in New Issue
Block a user