Skip to content

Commit

Permalink
I18nTextDomainFixer: remove unnecessary variable initialization (#2513)
Browse files Browse the repository at this point in the history
Initializing the variable here is unnecessary as its value is immediately overridden in the if/else below.
  • Loading branch information
rodrigoprimo authored Dec 2, 2024
1 parent 8c069fe commit 9f9726a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion WordPress/Sniffs/Utils/I18nTextDomainFixerSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,6 @@ public function process_comments( $stackPtr ) {
$regex = $this->plugin_header_regex;
$headers = $this->plugin_headers;
$type = 'plugin';
$skip_to = $stackPtr;

$file = TextStrings::stripQuotes( $this->phpcsFile->getFileName() );
if ( 'STDIN' === $file ) {
Expand Down

0 comments on commit 9f9726a

Please sign in to comment.