Skip to content

Commit

Permalink
chore: refactor datatype
Browse files Browse the repository at this point in the history
  • Loading branch information
cfabianski committed Mar 13, 2024
1 parent 3ab4910 commit 7218b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/report/schema/datatype/datatype.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 7218b43

Please sign in to comment.