fix staticcheck

This commit is contained in:
champly
2021-05-19 09:17:06 +08:00
parent 66fc9d476f
commit 50f1346977

View File

@@ -43,7 +43,7 @@ func NewJaegerExporter(opts TracingExporterOptions) (trace.Exporter, error) {
}
if jOpts.Endpoint != "" && jOpts.CollectorEndpoint == "" { // nolintlint:staticcheck
jOpts.CollectorEndpoint = fmt.Sprintf("%s/api/traces", jOpts.Endpoint)
jOpts.CollectorEndpoint = fmt.Sprintf("%s/api/traces", jOpts.Endpoint) // nolintlint:staticcheck
}
if jOpts.CollectorEndpoint == "" && jOpts.AgentEndpoint == "" { // nolintlint:staticcheck
return nil, errors.New("Must specify either JAEGER_COLLECTOR_ENDPOINT or JAEGER_AGENT_ENDPOINT")