From 41561143a592e0409168bbd91350761d1b048c47 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 11 May 2023 17:33:50 +0200 Subject: [PATCH] Fix some warnings about events we actually understand. --- ultimate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ultimate.js b/ultimate.js index 10f8fac..7e150b6 100644 --- a/ultimate.js +++ b/ultimate.js @@ -281,10 +281,10 @@ function process_matches(json) { } else if (type === 'offensive_soft_plus' || type === 'offensive_soft_minus' || type === 'defensive_soft_plus' || type === 'defensive_soft_minus') { ++p[type]; } else if (type !== 'in' && type !== 'out' && type !== 'pull' && - type !== 'their_goal' && type !== 'stoppage' && type !== 'unknown' && + type !== 'their_goal' && type !== 'stoppage' && type !== 'restart' && type !== 'unknown' && type !== 'set_defense' && type !== 'goal' && type !== 'throwaway' && type !== 'drop' && type !== 'set_offense' && type !== 'their_goal' && - type !== 'pull' && type !== 'pull_landed' && type !== 'pull_oob' && + type !== 'pull' && type !== 'pull_landed' && type !== 'pull_oob' && type !== 'their_pull' && type !== 'their_throwaway' && type !== 'defense' && type !== 'interception') { console.log("Unknown event:", e); } -- 2.39.2