Skip to content

Commit

Permalink
chore: appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
cfabianski committed Nov 15, 2023
1 parent 100a965 commit 10018b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/report/output/security/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ type GenericFinding interface {
func (f Finding) ToRawFinding(severity string) RawFinding {
rawFindingJson, _ := json.Marshal(f)
var rawFinding RawFinding
json.Unmarshal(rawFindingJson, &rawFinding)
err := json.Unmarshal(rawFindingJson, &rawFinding)
if err != nil {
return RawFinding{}
}

rawFinding.Severity = f.SeverityMeta.DisplaySeverity
return rawFinding
}
Expand Down

0 comments on commit 10018b6

Please sign in to comment.