Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: component lookups #1707

Merged
merged 3 commits into from
Mar 12, 2024
Merged

fix: component lookups #1707

merged 3 commits into from
Mar 12, 2024

Conversation

adityathebe
Copy link
Member

No description provided.

@adityathebe adityathebe force-pushed the fix/component-lookup-configdb branch from 9d01d0d to f950fc5 Compare March 11, 2024 06:12
@adityathebe adityathebe force-pushed the fix/component-lookup-configdb branch from f950fc5 to 7e7907d Compare March 11, 2024 12:51
@adityathebe adityathebe marked this pull request as ready for review March 11, 2024 14:44
}
if err := json.Unmarshal(data, &p); err != nil {
return nil, fmt.Errorf("error unmarshaling data from json: %w", err)
switch v := results[0].(type) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't this cause an index out of bounds?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a length check above it

@moshloop moshloop merged commit 2376718 into master Mar 12, 2024
14 checks passed
@moshloop moshloop deleted the fix/component-lookup-configdb branch March 12, 2024 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants