Part of meta-issue #2002650: [meta, no patch] improve maintainability by removing unused local variables
File /core/modules/field/lib/Drupal/field/Tests/Views/HandlerFieldFieldTest.php
Line 87: Unused local variable $key
Line 158: Unused local variable $rendered_field
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | drupal8.unused_var.2080671-6.patch | 1.14 KB | royal121 |
| #4 | drupal8.unused_var.2080671-4.patch | 1.19 KB | mcrittenden |
| #1 | 2080671.remove_unused_variable.patch | 1.27 KB | haza |
Comments
Comment #1
hazaComment #2
longwaveThis seems like it is testing something, even if there is no assertion.
Comment #3
g.i.joe commentedjust remove the variable and leave the function intact because we don't know the field could be rendered without error.
Comment #4
mcrittenden commentedComment #5
areke commentedThe patch no longer applies.
Comment #6
royal121 commentedAdded a new patch.
Comment #7
longwaveComment #8
webchickCommitted and pushed to 8.x. Thanks!