mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-06 17:40:58 +00:00
fix: do not error that much (#1137)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
490d716d3b
commit
ea64a0555d
2 changed files with 11 additions and 4 deletions
|
@ -175,11 +175,11 @@ func (impl *interperterImpl) evaluateIndexAccess(indexAccessNode *actionlint.Ind
|
|||
}
|
||||
return leftValue.Index(int(rightValue.Int())).Interface(), nil
|
||||
default:
|
||||
return nil, fmt.Errorf("Unable to index on non-slice value: %s", leftValue.Kind())
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Unknown index type: %s", rightValue.Kind())
|
||||
return nil, nil
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -260,7 +260,7 @@ func (impl *interperterImpl) getPropertyValue(left reflect.Value, property strin
|
|||
return values, nil
|
||||
}
|
||||
|
||||
return nil, fmt.Errorf("Unable to dereference '%s' on non-struct '%s'", property, left.Kind())
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (impl *interperterImpl) getMapValue(value reflect.Value) (interface{}, error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue