Skip to content

Commit 82e1db0

Browse files
pockeestolfo
authored andcommitted
Remove unnecessary self as a return value of initialize method (elastic#897)
1 parent 006108e commit 82e1db0

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

elasticsearch-model/lib/elasticsearch/model/response/records.rb

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def initialize(klass, response, options={})
4545
metaclass.__send__ :include, adapter.records_mixin
4646

4747
self.options = options
48-
self
4948
end
5049

5150
# Returns the hit IDs

elasticsearch-persistence/examples/notes/application.rb

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def initialize(attributes={})
3535
__add_date
3636
__extract_tags
3737
__truncate_text
38-
self
3938
end
4039

4140
def method_missing(method_name, *arguments, &block)

0 commit comments

Comments
 (0)