pkg/grafana/grafana.go
Showing 2 of 2 total issues
Method service.sync
has 72 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (s *service) sync(ctx context.Context) { log.Info(ctx, "Start to sync grafana datasource") logErr := func(err error) { log.Errorf(ctx, "Sync grafana datasource error: %+v", err)
Method service.sync
has 5 return statements (exceeds 4 allowed). Open
Open
func (s *service) sync(ctx context.Context) { log.Info(ctx, "Start to sync grafana datasource") logErr := func(err error) { log.Errorf(ctx, "Sync grafana datasource error: %+v", err)