-
Notifications
You must be signed in to change notification settings - Fork 293
chore: enable #nullable iteration 1 #3165
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
Conversation
06eb101 to
fa3da57
Compare
fa3da57 to
9d9cc26
Compare
| internal static string? ToWebSocketBaseURL(string? baseURL) | ||
| { | ||
| if (string.IsNullOrEmpty(baseURL)) | ||
| if (string.IsNullOrEmpty(baseURL) || baseURL == null) |
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.
Shouldn't IsNullOrEmpty() handle the null case?
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.
Unfortunately not with our tfm: https://stackoverflow.com/a/64066801
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
|
|
||
| [MethodImpl(MethodImplOptions.NoInlining)] | ||
| public async Task<IBrowser> LaunchAsync(BrowserTypeLaunchOptions options = default) | ||
| public async Task<IBrowser> LaunchAsync(BrowserTypeLaunchOptions? options = default) |
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.
Will this break older version .net users? Or do we not care about that?
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.
This is not the public interface, the public interface is this which is nullable.
Patch one of many for enabling strict null checks in our code-base.
Relates #3163