Skip to content

Commit 40aa1a9

Browse files
Andries-Smitclaude
andcommitted
docs(linter): correct robustExprToStarlark nil-return comment
The function returns a struct with kind="null", not starlark.None. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ff01c87 commit 40aa1a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mdl/linter/starlark_xpath.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func stripXPathBrackets(s string) string {
2323

2424
// robustExprToStarlark converts a RobustExpr AST node to a Starlark struct tree.
2525
// Each node is a struct with a "kind" field and type-specific fields.
26-
// Returns starlark.None for a nil node.
26+
// Returns a struct with kind="null" for a nil node.
2727
func robustExprToStarlark(expr exprcheck.RobustExpr) starlark.Value {
2828
if expr == nil {
2929
return starlarkstruct.FromStringDict(starlark.String("expr"), starlark.StringDict{

0 commit comments

Comments
 (0)