@@ -39,36 +39,36 @@ type CVE struct {
3939
4040// ReadRawInterface populates the CVE data struct from the raw array
4141// as returned by the YAML parser.
42- func (cve * CVE ) ReadRawInterface (cvedata interface {} ) error {
43- if val , ok := cvedata .(map [interface {}] interface {} )["id" ].(string ); ok {
42+ func (cve * CVE ) ReadRawInterface (cvedata any ) error {
43+ if val , ok := cvedata .(map [any ] any )["id" ].(string ); ok {
4444 cve .ID = val
4545 }
4646
47- if val , ok := cvedata .(map [interface {}] interface {} )["title" ].(string ); ok {
47+ if val , ok := cvedata .(map [any ] any )["title" ].(string ); ok {
4848 cve .Title = val
4949 }
5050
51- if val , ok := cvedata .(map [interface {}] interface {} )["issue" ].(string ); ok {
51+ if val , ok := cvedata .(map [any ] any )["issue" ].(string ); ok {
5252 cve .TrackingIssue = val
5353 }
5454
55- if val , ok := cvedata .(map [interface {}] interface {} )["vector" ].(string ); ok {
55+ if val , ok := cvedata .(map [any ] any )["vector" ].(string ); ok {
5656 cve .CVSSVector = val
5757 }
5858
59- if val , ok := cvedata .(map [interface {}] interface {} )["score" ].(float64 ); ok {
59+ if val , ok := cvedata .(map [any ] any )["score" ].(float64 ); ok {
6060 cve .CVSSScore = float32 (val )
6161 }
6262
63- if val , ok := cvedata .(map [interface {}] interface {} )["rating" ].(string ); ok {
63+ if val , ok := cvedata .(map [any ] any )["rating" ].(string ); ok {
6464 cve .CVSSRating = val
6565 }
6666
67- if val , ok := cvedata .(map [interface {}] interface {} )["description" ].(string ); ok {
67+ if val , ok := cvedata .(map [any ] any )["description" ].(string ); ok {
6868 cve .Description = val
6969 }
7070 // Linked PRs is a list of the PR IDs
71- if val , ok := cvedata .(map [interface {}] interface {} )["linkedPRs" ].([]interface {} ); ok {
71+ if val , ok := cvedata .(map [any ] any )["linkedPRs" ].([]any ); ok {
7272 cve .LinkedPRs = []int {}
7373
7474 for _ , prid := range val {
0 commit comments