Skip to content

Commit

Permalink
Merge pull request #539 from flyerhzm/awesomecode-lint-ruby-performan…
Browse files Browse the repository at this point in the history
…ce-blockgivenwithexplicitblock-47691

Auto corrected by following Lint Ruby Performance/BlockGivenWithExplicitBlock
  • Loading branch information
flyerhzm authored Jan 20, 2021
2 parents dfdd346 + 8f32443 commit f22f83f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/bullet/mongoid4x.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def last
end

def each(&block)
return to_enum unless block_given?
return to_enum unless block

records = []
origin_each { |record| records << record }
Expand Down
2 changes: 1 addition & 1 deletion lib/bullet/mongoid5x.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def last
end

def each(&block)
return to_enum unless block_given?
return to_enum unless block

records = []
origin_each { |record| records << record }
Expand Down
2 changes: 1 addition & 1 deletion lib/bullet/mongoid6x.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def last(opt = {})
end

def each(&block)
return to_enum unless block_given?
return to_enum unless block

records = []
origin_each { |record| records << record }
Expand Down
2 changes: 1 addition & 1 deletion lib/bullet/mongoid7x.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def last(opts = {})
end

def each(&block)
return to_enum unless block_given?
return to_enum unless block

records = []
origin_each { |record| records << record }
Expand Down

0 comments on commit f22f83f

Please sign in to comment.