Skip to content

Improve clarity by directly calling devices.contains(&device) #46

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

Merged
merged 1 commit into from
Feb 28, 2023

Conversation

lonesometraveler
Copy link
Contributor

In my opinion, dev_is_con is not a very descriptive name for a variable. A more readable approach might be to directly call devices.contains(&device) instead. This would make the code clearer and easier to understand.

@hacknus hacknus merged commit ad8bdd9 into hacknus:main Feb 28, 2023
@lonesometraveler lonesometraveler deleted the refactor_1 branch March 17, 2023 19:53
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