Skip to content

Commit 31136b1

Browse files
Coding Standards: Remove redundant check in insert_with_markers().
The check in the `elseif` branch would always be true, as the preceding `if` is for `! $found_marker`. Follow-up to [34740]. Props justlevine. See #63268. git-svn-id: https://develop.svn.wordpress.org/trunk@60480 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d6b7ae5 commit 31136b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-admin/includes/misc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ function insert_with_markers( $filename, $marker, $insertion ) {
205205

206206
if ( ! $found_marker ) {
207207
$pre_lines[] = $line;
208-
} elseif ( $found_marker && $found_end_marker ) {
208+
} elseif ( $found_end_marker ) {
209209
$post_lines[] = $line;
210210
} else {
211211
$existing_lines[] = $line;

0 commit comments

Comments
 (0)