Closed (won't fix)
Project:
Drupal core
Version:
8.0.x-dev
Component:
other
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Sep 2013 at 12:22 UTC
Updated:
29 Jul 2014 at 22:51 UTC
Part of meta-issue #2002650: [meta, no patch] improve maintainability by removing unused local variables
File /core/tests/Drupal/Tests/Core/Database/EmptyStatementTest.php
Line 42: Unused local variable $record
Comments
Comment #1
chertzogClosing as duplicate of #2080311: Clean up Drupal\system\Tests\Database\SelectTest.php
Comment #2
angel.hThis issue shouldn't have been closed - see https://drupal.org/node/2080311#comment-7909573.
Comment #3
mcrittenden commentedIMO this should be a won't fix because even though it creates an unused variable, it's the cleanest and most readable to test if something is iterable. From SO, the alternative looks like this:
I'd rather just stick with what which is instantly understandable.