lib/sportradar/api/nfl/game.rb in sportradar-api-0.9.3 vs lib/sportradar/api/nfl/game.rb in sportradar-api-0.9.5
- old
+ new
@@ -65,14 +65,14 @@
def current_score
"#{summary.home.points}-#{summary.away.points}" if summary
end
def drives
- quarters&.flat_map(&:drives)
+ quarters&.flat_map(&:drives).compact
end
def plays
- drives&.flat_map(&:plays)
+ drives&.flat_map(&:plays).compact
end
end
end
end