core/siri_subscription_request_dispatcher.go
Method SIRISubscriptionRequestDispatcher.CancelSubscription
has 58 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (connector *SIRISubscriptionRequestDispatcher) CancelSubscription(r *sxml.XMLDeleteSubscriptionRequest, message *audit.BigQueryMessage) *siri.SIRIDeleteSubscriptionResponse {
message.RequestIdentifier = r.MessageIdentifier()
currentTime := connector.Clock().Now()
resp := &siri.SIRIDeleteSubscriptionResponse{
Method SIRISubscriptionRequestDispatcher.Dispatch
has 57 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (connector *SIRISubscriptionRequestDispatcher) Dispatch(request *sxml.XMLSubscriptionRequest, message *audit.BigQueryMessage) (*siri.SIRISubscriptionResponse, error) {
response := siri.SIRISubscriptionResponse{
Address: connector.Partner().Address(),
ResponderRef: connector.Partner().RequestorRef(),
ResponseTimestamp: connector.Clock().Now(),
Method SIRISubscriptionRequestDispatcher.Dispatch
has 13 return statements (exceeds 4 allowed). Open
Open
func (connector *SIRISubscriptionRequestDispatcher) Dispatch(request *sxml.XMLSubscriptionRequest, message *audit.BigQueryMessage) (*siri.SIRISubscriptionResponse, error) {
response := siri.SIRISubscriptionResponse{
Address: connector.Partner().Address(),
ResponderRef: connector.Partner().RequestorRef(),
ResponseTimestamp: connector.Clock().Now(),