core/gtfs_rt_request_collector.go
Method GtfsRequestCollector.handleAlert
has 83 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (connector *GtfsRequestCollector) handleAlert(events *CollectUpdateEvents, a *gtfs.Alert, id string, timestamp uint64) {
entities := a.GetInformedEntity()
if len(entities) == 0 {
logger.Log.Debugf("%d affects for this Alert, skipping message", len(entities))
return