File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,11 @@ Style/FrozenStringLiteralComment:
2424
2525# default complexity is low at 8
2626Metrics/PerceivedComplexity :
27- Max : 10
27+ Max : 12
28+
29+ # method length is not a problem
30+ MethodLength :
31+ Max : 30
2832
2933# if works as well as safe navigation (&.)
3034Style/SafeNavigation :
Original file line number Diff line number Diff line change 3737company_list . each do |company |
3838 # store request into a search_queue - no-blocker
3939 result = client . search ( { q : company } )
40- if result [ :search_metadata ] [ :status ] =~ /Cached/
41- puts "#{ company } : search results found in cache for: #{ company } "
42- end
40+ puts "#{ company } : search results found in cache for: #{ company } " if result [ :search_metadata ] [ :status ] =~ /Cached/
4341
4442 # add results to the client queue
4543 search_queue . push ( result [ :search_metadata ] [ :id ] )
6765 next
6866 end
6967
70- # add results back to the client queue
68+ # add results back to the client queue
7169 # if the search is still in progress
7270 search_queue . push ( result )
7371end
You can’t perform that action at this time.
0 commit comments