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: return nil when HeaderTable.Get does not find a corresponding header #36

Conversation

harry-stebbins-dailypay
Copy link
Contributor

With a datatable like this:

| example_header |
| example_value |

Before this commit, if you call dt.HeaderTable().Get(0, "this_does_not_exist"), it returns the cell at 1,0 position in the datatable (i.e. example_value).

After this commit, if you call dt.HeaderTable().Get(0, "this_does_not_exist"), it returns nil.

@harry-stebbins-dailypay
Copy link
Contributor Author

@aaronc not sure if this a known issue, but i think the behavior after this commit is more intuitive than before. Let me know if you have any questions.

Copy link
Member

@aaronc aaronc left a comment

Choose a reason for hiding this comment

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

This definitely makes sense and it should have been this way originally. Thanks for finding this and contributing @harry-stebbins-dailypay !

@aaronc aaronc merged commit a4fc0d4 into regen-network:main Sep 3, 2024
2 checks passed
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