Skip to content
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

Explicit null tests #169

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Explicit null tests #169

wants to merge 2 commits into from

Conversation

alexrudd2
Copy link
Owner

I'm starting to cherry-pick @jedahan's work on types and explicitness in the ts-standard branch.

src/server.ts Outdated
@@ -302,7 +302,7 @@ async function * ebbs (path?: string, hardware: Hardware = 'v3') {
}

export async function connectEBB (hardware: Hardware = 'v3', device: string | undefined): Promise<EBB | null> {
if (!device) {
if (device != null) {
Copy link
Owner Author

Choose a reason for hiding this comment

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

== null

Co-authored-by: Alex Ruddick <[email protected]>
@alexrudd2 alexrudd2 marked this pull request as ready for review February 17, 2025 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant