- 
                Notifications
    You must be signed in to change notification settings 
- Fork 223
A few small lint issues #2481
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
A few small lint issues #2481
Conversation
When creating c/common v0.64.0, I found a lot of "hot air" lint issues, but also three smal nitty ones. This fixes the nits. Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
| Reviewer's GuideThis pull request addresses minor lint and style issues by refining conditional logic in a test and correcting a documentation comment in internal code. File-Level Changes
 Tips and commandsInteracting with Sourcery
 Customizing Your ExperienceAccess your dashboard to: 
 Getting Help
 | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @TomSweeneyRedHat - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| [APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Luap99, sourcery-ai[bot], TomSweeneyRedHat The full list of commands accepted by this bot can be found here. The pull request process is described here 
Needs approval from an approver in each of these files:
 
 Approvers can indicate their approval by writing  | 
| t.Fatalf("adding an instance failed in %s: %v", version, err) | ||
| } | ||
| if o.Platform != nil { | ||
| if o != nil && o.Platform != nil { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this changes the semantics — returning (nil, nil) would now fail.
That should never happen, and I think leaving this as just if o.Platform != nil (which o == nil crashing) would be fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would now fail.
I’m sorry, I meant “would not be detected as a problem by the test”.
| Hi, and thank you for your contribution! We’ve recently migrated this repository into a new monorepo: containers/container-libs along with other repositories As part of this migration, this repository is no longer accepting new Pull-Requests and therefore this Pull-Request is being closed. Thank you very much for your contribution. We would appreciate your continued help in migrating this PR to the new container-libs repository. Please let us know if you are facing any issues. You can read more about the migration and the reasoning behind it in our blog post: Upcoming migration of three containers repositories to monorepo. Thanks again for your work and for supporting the containers ecosystem! | 
When creating c/common v0.64.0, I found a lot of "hot air" lint issues, but also three smal nitty ones. This fixes the nits.
Summary by Sourcery
Address minor lint issues by correcting test conditionals and improving code comments.
Bug Fixes:
Enhancements: