Repository navigation
Conversation
At this moment, `underlyingSocketClosed` is freshly created, and its value if always `false`. This guard was rather needed in methods `close()` and `clearListeners()`.
PR TypeBug fix Description
|
| Relevant files | |||
|---|---|---|---|
| Cleanup |
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
They can contain null values, e.g. in `SetScreenOrientationOverrideParameters`.
At this moment,
underlyingSocketClosedis freshly created, and its value if alwaysfalse.This guard was rather needed in methods
close()andclearListeners().🔗 Related Issues
See #13316 and https://github.com/SeleniumHQ/selenium/pull/13333/changes
💥 What does this PR do?
Removed "if" from the place where it was always
true.Just a tiny code cleanup.
The benefit is that field
Connection.socketis now final and non-nullable.🔄 Types of changes