5 ms·
without a context that might make it reasonable, the original code is fairly absurd: where is the error handling? The bad cases of several if clauses should be
by HelloNurse 3y ago
without a context that might make it reasonable, the original code is fairly absurd: where is the error handling?
The bad cases of several if clauses should be by far the largest and least obvious portion of the code, not silently omitted and further obscured by hiding branches.