mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 23:16:30 +01:00
add test and linting fixes
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
@@ -38,6 +38,7 @@ func (p *syftPackageMetadataUnpacker) String() string {
|
||||
}
|
||||
|
||||
// UnmarshalJSON is a custom unmarshaller for handling basic values and values with ambiguous types.
|
||||
// nolint:funlen
|
||||
func (p *SyftPackageData) UnmarshalJSON(b []byte) error {
|
||||
var basic SyftPackageBasicData
|
||||
if err := json.Unmarshal(b, &basic); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user