Skip to content

Eliminate useless assignments of an empty list#1030

Merged
exodist merged 2 commits intoTest-More:masterfrom
bschmalhofer:master
Mar 29, 2025
Merged

Eliminate useless assignments of an empty list#1030
exodist merged 2 commits intoTest-More:masterfrom
bschmalhofer:master

Conversation

@bschmalhofer
Copy link
Copy Markdown
Contributor

I noticed a confusing line in Test::More::use_ok(). I think that the line has no use, even though I didn't test with Perl 5.6.0.

See also http://www.perl-community.de/bat/poard/thread/21661.

For arrays that were just declared with 'my'.
The assignment of an empty list happens only when the array is already empty.
@exodist exodist merged commit 3d8923f into Test-More:master Mar 29, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants