Closed sdenef-adeo closed 1 year ago
Hi @sdenef-adeo, I agree this code is not reachable. data
is never modified in between the two identical checks. It is safe to remove this code. Could you just move the code responsible for defining error
and appending it to errors
to the block at the top? This way we get the best of both.
Hi @lvaylet ,
I didn't move it to not change the behavior (as this code has never been reached).
I updated the PR as requested.
Check if data is None already done at the beginning of the function. This code can't be reached.