Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Part of meta-issue #2002650: [meta, no patch] improve maintainability by removing unused local variables
File /core/modules/file/lib/Drupal/file/Tests/SaveUploadTest.php
Line 83: Unused local variable $max_fid_before
Comment | File | Size | Author |
---|---|---|---|
#1 | core-remove-vars-saveuploadtest.php-2072561-1.patch | 688 bytes | legolasbo |
Comments
Comment #1
legolasboRemoved unused local variable
Comment #2
phiit CreditAttribution: phiit commentedPatch applied and reviewed, it looks good and simple. Thanks!
Comment #3
webchickWow, great. This not only cleaned up an unused variable, but also improved performance by not calling a query unnecessarily. Great work!
Committed and pushed to 8.x. Thanks!