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