Skip to content

Commit 85779c8

Browse files
committed
Fix linter
1 parent 1902480 commit 85779c8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/ruby_llm/schema/dsl.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ def build_property_schema(type, **options, &)
127127
return reference(options[:reference]) if options[:reference]
128128

129129
sub_schema = Class.new(Schema)
130-
130+
131131
# Evaluate the block and capture the result
132132
result = sub_schema.class_eval(&)
133-
133+
134134
# If the block returned a reference and no properties were added, use the reference
135135
if result.is_a?(Hash) && result["$ref"] && sub_schema.properties.empty?
136136
result.merge(options[:description] ? {description: options[:description]} : {})

spec/ruby_llm/schema_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
string :street
227227
string :city
228228
end
229-
229+
230230
schema_class.object :user do
231231
string :name
232232
object :address do
@@ -253,7 +253,7 @@
253253
string :street
254254
string :city
255255
end
256-
256+
257257
schema_class.object :user do
258258
string :name
259259
object :address, reference: :address

0 commit comments

Comments
 (0)