Skip to content

Commit 33355de

Browse files
oryan-blockclaude
andcommitted
Clarify why the generic wrapper result isn't defaulted
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 8343dc9 commit 33355de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/main/kotlin/graphql/kickstart/tools/resolver/MethodFieldResolver.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ private fun Any.transformWithGenericWrapper(
274274
.firstOrNull()
275275
?: return this
276276

277-
// a transformer may map a value to null, e.g. the empty case of an Option-like wrapper
277+
// returned as is, even if null, so a transformer can map a value to null
278278
return genericWrapper.transformer(this, environmentSupplier.get())
279279
}
280280

0 commit comments

Comments
 (0)