Commit 2b6ceac
Coding Standards: Remove unreachable
This commit removes an unreachable `return` statement, as the function will bail early if `$template_type` is not a `wp_template` or `wp_template_part`.
For the same reason, the second `if` conditional was also redundant and is now removed.
Follow-up to [52062].
Props justlevine.
See #63268.
git-svn-id: https://develop.svn.wordpress.org/trunk@60328 602fd350-edb4-49c9-b593-d223f7449a82return in _get_block_template_file().1 parent b4b1bd9 commit 2b6ceac
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
| 347 | + | |
| 348 | + | |
352 | 349 | | |
353 | 350 | | |
354 | 351 | | |
| |||
0 commit comments