Skip to content

Commit 07ff12f

Browse files
📝 Add docstrings to fix/lookup-entity-recursive-attributes
Docstrings generation was requested by @omer-topal. * #2763 (comment) The following files were modified: * `internal/engines/entity_filter.go`
1 parent 5ad4341 commit 07ff12f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

internal/engines/entity_filter.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ func (engine *EntityFilter) attributeEntrance(
212212
return nil
213213
}
214214

215+
// decodeCursorValue decodes a cursor token and returns its underlying value.
216+
// It returns an empty string with no error when the input cursor is empty.
217+
// If token decoding fails, the returned error describes the failure.
218+
// If decoding succeeds but the token is not a ContinuousToken, it returns an empty string with no error.
215219
func decodeCursorValue(cursor string) (string, error) {
216220
if cursor == "" {
217221
return "", nil
@@ -724,4 +728,4 @@ func (engine *EntityFilter) pathChainEntrance(
724728
}
725729

726730
return nil
727-
}
731+
}

0 commit comments

Comments
 (0)