-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
src: fix ThrowInvalidURL call in PathToFileURL #57141
base: main
Are you sure you want to change the base?
src: fix ThrowInvalidURL call in PathToFileURL #57141
Conversation
Replace `nullptr` with `std::nullopt` when calling `ThrowInvalidURL` in `PathToFileURL`. This ensures the function receives the correct argument type and aligns with the expected behavior.
Review requested:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #57141 +/- ##
==========================================
+ Coverage 88.54% 89.03% +0.49%
==========================================
Files 665 665
Lines 193408 193408
Branches 36961 37278 +317
==========================================
+ Hits 171250 172205 +955
+ Misses 14795 13884 -911
+ Partials 7363 7319 -44
|
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.
should we also add a test?
Do we have a test with a malformed URL? |
Fixes #57133.
Replaces
nullptr
withstd::nullopt
when callingThrowInvalidURL
inPathToFileURL
. This ensures the function receives the correct argument type and aligns with the expected behavior.PS: I'm not sure how to test this, any help would be appreciated.