Skip to content

Commit 68a0c99

Browse files
ctawiahcursoragent
andcommitted
chore: drop redundant ldctx comments (AIC-2695)
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent f4342d8 commit 68a0c99

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

  • lib/sdk/server-ai/src/main/java/com/launchdarkly/sdk/server/ai/internal

lib/sdk/server-ai/src/main/java/com/launchdarkly/sdk/server/ai/internal/Interpolator.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ private static Map<String, Object> contextToMap(LDContext context) {
9898
if (context.isMultiple()) {
9999
Map<String, Object> map = new HashMap<>();
100100
map.put("kind", "multi");
101-
// Expose the canonical multi-kind key at the top level (matching other SDKs) so
102-
// {{ldctx.key}} resolves for multi-kind contexts.
103101
map.put("key", context.getFullyQualifiedKey());
104102
int count = context.getIndividualContextCount();
105103
for (int i = 0; i < count; i++) {
@@ -124,7 +122,6 @@ private static Map<String, Object> singleContextToMap(LDContext context, boolean
124122
if (context.getName() != null) {
125123
map.put("name", context.getName());
126124
}
127-
// Always expose anonymous as true/false (matching other SDKs) rather than only when true.
128125
map.put("anonymous", context.isAnonymous());
129126
// Custom attribute values can be arbitrary JSON; convert each LDValue to a plain Java value
130127
// (depth-capped) so nested objects/arrays remain addressable from templates.

0 commit comments

Comments
 (0)