diff --git a/cmd/anonymizer/app/uiconv/extractor.go b/cmd/anonymizer/app/uiconv/extractor.go index 6dc39df69c0..7134c8ea9ec 100644 --- a/cmd/anonymizer/app/uiconv/extractor.go +++ b/cmd/anonymizer/app/uiconv/extractor.go @@ -64,7 +64,7 @@ func (e *Extractor) Run() error { spans = append(spans, *span) } } - if err != nil && !errors.Is(err, io.EOF) { + if !(err != nil && errors.Is(err, io.EOF)) { return fmt.Errorf("failed when scanning the file: %w", err) } trace := uimodel.Trace{