We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In sopt/cpp/chained_operators.h, we have
if (funcs.size() == 1) (*first)(output, input); else if (funcs.size() % 2 == 1) (*first)(output, input); else { (*first)(*buffer, input); first++; (*first)(output, *buffer); }
As we can see, the if statement and the elseif has the same statement in their bodies. This can be cleaned up to get rid of the redundancy.
if
elseif
The text was updated successfully, but these errors were encountered:
Doesn't 1%2 ==1 so the first two conditions are both true if funcs.size ==1? So you could just remove the first condition entirely.
1%2 ==1
funcs.size ==1
Sorry, something went wrong.
@SJaffa Agreed. Shall I do that then?
No branches or pull requests
In sopt/cpp/chained_operators.h, we have
As we can see, the
if
statement and theelseif
has the same statement in their bodies. This can be cleaned up to get rid of the redundancy.The text was updated successfully, but these errors were encountered: