Skip to content

Commit 784281f

Browse files
committed
[DSL] Remove require line and correct return type for method
1 parent 67cb7e4 commit 784281f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/elasticsearch/dsl/search.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def highlight(*args, &block)
167167

168168
# DSL method for building the `collapse` part of a search definition
169169
#
170-
# @return [self]
170+
# @return [self, Collapse]
171171
#
172172
def collapse(*args, &block)
173173
if !args.empty? || block

spec/elasticsearch/dsl/search/queries/inner_hits_spec.rb

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
# under the License.
1717

1818
require 'spec_helper'
19-
require 'pry-nav'
2019

2120
describe Elasticsearch::DSL::Search::Queries::InnerHits do
2221

0 commit comments

Comments
 (0)