Skip to content

Commit

Permalink
nil -> []
Browse files Browse the repository at this point in the history
  • Loading branch information
kotakanbe committed Feb 27, 2017
1 parent 6ecf2ec commit 7ec123b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@ func (v *VulnInfo) NilSliceToEmpty() {
if v.DistroAdvisories == nil {
v.DistroAdvisories = []DistroAdvisory{}
}
if v.Packages == nil {
v.Packages = PackageInfoList{}
}
}

// FindByCveID find by CVEID
Expand Down

0 comments on commit 7ec123b

Please sign in to comment.