diff --git a/internal/report/schema/datatype/datatype.go b/internal/report/schema/datatype/datatype.go index 80bf51f18..3f39232ba 100644 --- a/internal/report/schema/datatype/datatype.go +++ b/internal/report/schema/datatype/datatype.go @@ -196,7 +196,7 @@ func dataTypeToSchema[D DataTypable](report detections.ReportDetection, detectio return } - if classification, ok := dataType.GetClassification().(classificationschema.Classification); ok && classification.Decision.State != classify.Valid { + if classification := dataType.GetClassification().(classificationschema.Classification); classification.Decision.State != classify.Valid { return }