REDPy
REDPy copied to clipboard
Duplicate server type checking when the type is file
In the following lines:
https://github.com/ahotovec/REDPy/blob/098495a46acc753a303f22ecf859b646046ea71f/redpy/trigger.py#L43-L48
In the line 43, it checks if opt.server
equal to file. Then, in the line 46 it also checks the same thing.
Type hinting may also report flist
in the line 53 is possibly unbound.
https://github.com/ahotovec/REDPy/blob/098495a46acc753a303f22ecf859b646046ea71f/redpy/trigger.py#L50-L55
Thanks for pointing this out. It's been a while since I've done housekeeping on these functions, and they've undergone a lot of changes the last few years.