cutile-python
cutile-python copied to clipboard
Remove redundant checks and tried to simplify some if else.
Description
When reading through the code I noticed an unnecessary condition and early returns. Updated to simplify the code by flattening the structure and remove condition that is already checked. Let me know if I am nit picking to much. Juste likes to update things when I go over to help on open source projects and cuTile seems like an awesome project, thanks!
Checklist
- [x] I am familiar with the Contributing Guidelines.
- [x] New or existing tests cover these changes.
- [x] The documentation is up to date with these changes.