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

refactor: use early return when opening device #47

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

louib
Copy link
Owner

@louib louib commented Aug 27, 2024

This commit cleans up the error handling when opening a device, thus reducing the indentation level of functions that have to open a device.

@louib louib marked this pull request as ready for review August 27, 2024 20:44
@louib louib requested a review from droidmonkey as a code owner August 27, 2024 20:44
@louib louib force-pushed the open-device-early-return branch from f0a9ce5 to 6bf4306 Compare August 27, 2024 20:44
@louib louib changed the title refactor: use early return with opening device refactor: use early return when opening device Aug 27, 2024
@louib louib enabled auto-merge (squash) August 27, 2024 20:45
@louib louib disabled auto-merge August 30, 2024 13:00
@louib louib merged commit 1a4223f into master Aug 30, 2024
6 checks passed
@louib louib deleted the open-device-early-return branch August 30, 2024 13:00
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