Commit b38123c
committed
Coding Standards: Remove redundant checks in
This commit removes two unnecessary conditional checks:
* A truthy check for `$compare`, as a falsey value causes an earlier return a few lines above.
* A check to ensure `$maybe_page` is not an empty string, as it is already cast to an integer.
Follow-up to [32648], [34492], [53857].
Props justlevine.
See #63268.
git-svn-id: https://develop.svn.wordpress.org/trunk@60447 602fd350-edb4-49c9-b593-d223f7449a82wp_resolve_numeric_slug_conflicts().1 parent eadf08b commit b38123c
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
| 415 | + | |
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
463 | | - | |
464 | | - | |
465 | | - | |
| 463 | + | |
466 | 464 | | |
467 | 465 | | |
468 | 466 | | |
| |||
0 commit comments