fun updateIfNeeded(newTrackers: List<TrackerLog>) { if (newTrackers != trackers) { trackers = newTrackers buckets = putTrackersInBuckets(newTrackers) } }
If [newTrackers] has changed since the last call, update [buckets] based on the new tracker log list.