Skip to content

Commit 83b0f0a

Browse files
committed
fix: lint
1 parent 87d139d commit 83b0f0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ func validateElicitSchema(schema *jsonschema.Schema) error {
338338
// validateElicitProperty validates a single property in an elicitation schema.
339339
func validateElicitProperty(propName string, propSchema *jsonschema.Schema) error {
340340
// Check if this property has nested properties (not allowed)
341-
if propSchema.Properties != nil && len(propSchema.Properties) > 0 {
341+
if len(propSchema.Properties) > 0 {
342342
return fmt.Errorf("elicit schema property %q contains nested properties, only primitive properties are allowed", propName)
343343
}
344344

0 commit comments

Comments
 (0)