Skip to content

refactor(usb-drive): use optional instead of nullable in BlockDeviceInfo#8128

Merged
eventualbuddha merged 2 commits intomainfrom
refactor/use-optional-instead-of-nullable-in-blockdeviceinfo
Mar 18, 2026
Merged

refactor(usb-drive): use optional instead of nullable in BlockDeviceInfo#8128
eventualbuddha merged 2 commits intomainfrom
refactor/use-optional-instead-of-nullable-in-blockdeviceinfo

Conversation

@eventualbuddha
Copy link
Copy Markdown
Contributor

Overview

Extracted from #8057
Refs #7897

Optional fields fits better with the interfaces we typically use in VxSuite.

Demo Video or Screenshot

n/a

Testing Plan

Automated tests.

@eventualbuddha eventualbuddha force-pushed the refactor/use-optional-instead-of-nullable-in-blockdeviceinfo branch from d8662a3 to a99e5d6 Compare March 17, 2026 22:54
…al label

Now that `BlockDeviceInfo.label` is `string | undefined` instead of
`string | null`, the `?? undefined` coalescing is redundant and was
causing an uncovered branch.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@eventualbuddha eventualbuddha merged commit 3e7dbc4 into main Mar 18, 2026
59 checks passed
@eventualbuddha eventualbuddha deleted the refactor/use-optional-instead-of-nullable-in-blockdeviceinfo branch March 18, 2026 17:05
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.

2 participants