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 missing argument assignments in NewWatcher #8

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

hlts2
Copy link
Member

@hlts2 hlts2 commented Feb 28, 2025

This PR fixes an issue where certain arguments were not correctly assigned to the watcher struct in NewWatcher.

Changes:

  • Fixed missing assignments of specific fields in watcher.
  • Added test cases to verify correct field assignments.

Ensured test cases handle error scenarios properly to avoid nil dereference issues.
These changes improve the correctness of the implementation and the reliability of tests.

⚠️ In v0.1.0, this issue results in an error. However, this implementation is expected to fix the error, so a new version release will be required.

cc: @johndietz

@hlts2 hlts2 requested a review from johndietz February 28, 2025 05:38
@hlts2 hlts2 self-assigned this Feb 28, 2025
Copy link
Contributor

@johndietz johndietz left a comment

Choose a reason for hiding this comment

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

lgtm 🚀

@johndietz
Copy link
Contributor

noted on release detail

@hlts2
Copy link
Member Author

hlts2 commented Feb 28, 2025

@johndietz Thank you for your review! I will merge this PR 🚀

@hlts2 hlts2 merged commit 241c9db into main Feb 28, 2025
1 check passed
@hlts2 hlts2 deleted the fix/bugfix-set-api-key-info branch February 28, 2025 11:08
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