Skip to content

Commit

Permalink
Fix incorrect variable name
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Larraz <[email protected]>
  • Loading branch information
mlarraz committed Apr 16, 2024
1 parent 4ee713a commit 033b46b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/opensearch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def method_missing(name, *args, &block)
end

def respond_to_missing?(method_name, include_private = false)
name == :perform_request || super
method_name == :perform_request || super
end

private
Expand Down
2 changes: 1 addition & 1 deletion lib/opensearch/dsl/search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def method_missing(name, *args, &block)
end

def respond_to_missing?(method_name, include_private = false)
@options.respond_to?(name) || super
@options.respond_to?(method_name) || super
end

# Converts the search definition to a Hash
Expand Down

0 comments on commit 033b46b

Please sign in to comment.