From 7218b4391c70d94494c2ff5bfbe1cd9530de2be2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Fabianski?= Date: Wed, 13 Mar 2024 15:22:58 +0100 Subject: [PATCH] chore: refactor datatype --- internal/report/schema/datatype/datatype.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }