File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,15 @@ namespace :dojo_event_services do
31
31
end
32
32
33
33
# Dump result
34
- result [ :skipped ] = result [ :skipped ] . uniq { |s | s . first }
35
- result . except! ( :kept , :skipped ) unless ENV . key? ( 'DEBUG' )
36
- sorted = result . sort_by { |_ , v | v . length } . reverse . to_h
37
- puts
38
- sorted . each do |k , v |
39
- puts "#{ k . to_s . camelcase } : #{ v . length } "
40
- v . each { |x | puts " #{ x . join ( ': ' ) } " }
34
+ if !result [ :inserted ] . empty? || !result [ :updated ] . empty?
35
+ result [ :skipped ] = result [ :skipped ] . uniq { |s | s . first }
36
+ result . except! ( :kept , :skipped ) unless ENV . key? ( 'DEBUG' )
37
+ sorted = result . sort_by { |_ , v | v . length } . reverse . to_h
38
+ puts
39
+ sorted . each do |k , v |
40
+ puts "#{ k . to_s . camelcase } : #{ v . length } "
41
+ v . each { |x | puts " #{ x . join ( ': ' ) } " }
42
+ end
41
43
end
42
44
end
43
45
end
You can’t perform that action at this time.
0 commit comments