models/es_worker.go
Method ESWorker.PerformUpdateES
has 63 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (w *ESWorker) PerformUpdateES(m *workers.Msg) {
tags := opentracing.Tags{"component": "go-workers"}
span := opentracing.StartSpan("PerformUpdateES", tags)
defer span.Finish()
defer tracing.LogPanic(span)
Avoid deeply nested control flow statements. Open
Open
if err != nil {
logger.Error("Failed to delete clan from Elastic Search.", zap.Error(err))
}