From 6f3fe4337693b1ac910008adf4b680150d802cdd Mon Sep 17 00:00:00 2001 From: jt-dd Date: Thu, 14 Nov 2024 15:50:37 +0100 Subject: [PATCH] fix linter --- pkg/kubehound/storage/graphdb/janusgraph_provider.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/kubehound/storage/graphdb/janusgraph_provider.go b/pkg/kubehound/storage/graphdb/janusgraph_provider.go index efea8bef..8a4d04dd 100644 --- a/pkg/kubehound/storage/graphdb/janusgraph_provider.go +++ b/pkg/kubehound/storage/graphdb/janusgraph_provider.go @@ -149,7 +149,8 @@ func (jgp *JanusGraphProvider) Close(ctx context.Context) error { } // Raw returns a handle to the underlying provider to allow implementation specific operations e.g graph queries. -func (jgp *JanusGraphProvider) Clean(ctx context.Context, cluster string) (err error) { +func (jgp *JanusGraphProvider) Clean(ctx context.Context, cluster string) error { + var err error span, ctx := span.SpanRunFromContext(ctx, span.IngestorClean) defer func() { span.Finish(tracer.WithError(err)) }() l := log.Trace(ctx)