Skip to content

Conversation

@webfrogs
Copy link
Contributor

No description provided.

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jan 28, 2026
@dosubot
Copy link

dosubot bot commented Jan 28, 2026

Related Documentation

Checked 1 published document(s) in 1 knowledge base(s). No updates required.

How did I do? Any feedback?  Join Discord

@dosubot dosubot bot added the 🐞 bug Something isn't working label Jan 28, 2026
@cfc4n cfc4n requested a review from Copilot January 28, 2026 14:38
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes an incorrect conditional check in the OpenSSL version detection logic. The code was logging a success message when the version was not found (specific error), rather than when it was successfully detected (no error).

Changes:

  • Corrected the log condition from checking for a specific error (ErrProbeOpensslVerNotFound) to checking for success (err == nil)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

return err
}
if errors.Is(err, ErrProbeOpensslVerNotFound) {
if err == nil {
Copy link
Member

Choose a reason for hiding this comment

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

The function of the original code is to judge that "the error is ErrProbeOpensslVerNotFound, when printing 241 lines of logs." ”

The current changes are not correct.

Copy link
Contributor Author

@webfrogs webfrogs Jan 29, 2026

Choose a reason for hiding this comment

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

OK. Based on my understanding of the code, if err is ErrProbeOpensslVerNotFound, then the verString variable will be empty, making it meaningless to print it.
I'll close this pr.

@webfrogs webfrogs closed this Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants