Skip to content

Conversation

@hlange4
Copy link

@hlange4 hlange4 commented Oct 18, 2023

Removed duplicate code from the man himself :P

Removed duplicate code from the man himself :P
Fixed some Exception stylings - it would be best to define custom Exceptions.

added ```startswith``` and ```endswith``` for better readability

removed several unused parameters in functions:
Unused parameters are misleading. Whatever the value passed to such parameters is, the behavior will be the same.

rewrote the code snippet that checks if jval is not None to a more concise way to express this

Defined a constant instead of duplicating this literal ".yaml" 3 times.
@hlange4 hlange4 changed the title Update bms-network-setup.py - removed duplicate statement Update bms-network-setup.py - Some refactoring Oct 18, 2023
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