Skip to content

Commit eb1055a

Browse files
committed
Rubocop autocorrection
1 parent be12bf7 commit eb1055a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/openapi3_parser/node/schema.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def requires?(property)
115115
# compare node_context of objects to ensure references aren't treated
116116
# as equal - only direct properties of this object will pass.
117117
properties.to_h
118-
.select { |k, _| required.to_a.include?(k) }
118+
.slice(*required.to_a)
119119
.any? { |_, schema| schema.node_context == property.node_context }
120120
else
121121
required.to_a.include?(property)

0 commit comments

Comments
 (0)