You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While looking through the code to understand what's being done and see how issue #2117 could be resolved, lines 51 to 63 caught my eye.
The conditions of the "if"s at lines L51 if (scanResult > 0) and L61 if (scanResult <= 0) are mutually exclusive. So the code at line 62 can never be executed. Unless I've missed something?
Not a bug as such (it doesn't break anything) but it adds complexity when reading the code. The enormous "else" clause, from 63 onwards to nearly the end of ::run, could be reduced one indentation level.
While looking through the code to understand what's being done and see how issue #2117 could be resolved, lines 51 to 63 caught my eye.
The conditions of the "if"s at lines L51
if (scanResult > 0)
and L61if (scanResult <= 0)
are mutually exclusive. So the code at line 62 can never be executed. Unless I've missed something?Not a bug as such (it doesn't break anything) but it adds complexity when reading the code. The enormous "else" clause, from 63 onwards to nearly the end of
::run
, could be reduced one indentation level.EDIT This was introduced by the commit 9a1ff7f
The text was updated successfully, but these errors were encountered: