In system.admin.inc line 239, there's a completely useless if condition with an OR operation on three variables encapsulating three other ifs, each one doing checking one of those three variables.
This encapsulating if is totally useless and should be removed.
The attached patch solves that problem.
Beta phase evaluation
| Issue category | Task because it cleans things up |
|---|---|
| Issue priority | Minor because removes redundancy |
| Comment | File | Size | Author |
|---|---|---|---|
| remove_useless_if.patch | 1.8 KB | drupa11y |
Comments
Comment #1
dawehnerPerfect!
Comment #2
cilefen commentedComment #3
joelpittetComment #4
webchickThat is indeed quite silly. :) Nice catch.
Committed and pushed to 8.0.x. Thanks!