Part of meta-issue #2002650: [meta, no patch] improve maintainability by removing unused local variables
File /core/modules/system/lib/Drupal/system/Tests/Common/JavaScriptTest.php
Line 482: Unused local variable $result
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | drupal-core-remove-unuses-local-variable-2080321-4.patch | 1.05 KB | sandergo90 |
| #2 | drupal8.system-module.2080321-2.patch | 1018 bytes | G2 |
Comments
Comment #1
G2 commentedComment #2
G2 commentedRemoved the variable assignment from line 482.
Comment #4
sandergo90 commentedThe patch was not ok. It removed the line of drupal_add_library completely and tests were failing then. I've attached a patch where $result will be removed but drupal_add_library will be kept.
Comment #5
parthipanramesh commentedlooks good.
Comment #6
webchickCommitted and pushed to 8.x. Thanks!