Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

npm handler fix #277

Merged
merged 1 commit into from
Oct 31, 2022
Merged

npm handler fix #277

merged 1 commit into from
Oct 31, 2022

Conversation

ashishvishal1
Copy link
Contributor

@ashishvishal1 ashishvishal1 commented Oct 19, 2022

In npm/handler.go file at two places, we were getting string interface as well as map[string] interface but the code was written assuming for only map[string] interface. So, added IF conditions for type checking.
Fixes #252
Signed-off-by: Ashish Vishal [email protected]

In npm/handler.go file at two places, we were getting string interface as well as map[string] interface but the code was written assuming for only map[string] interface. So, added IF conditions for type checking.
Fixes opensbom-generator#252
Signed-off-by: Ashish Vishal [email protected]
@nishakm nishakm merged commit bb25d26 into opensbom-generator:main Oct 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

panic: interface conversion: interface {} is string, not map[string]
2 participants