Please remove unused variable in entity_embed.module:

FILE: ...e1101/web/vendor/drupal/pareviewsh/pareview_temp/entity_embed.module
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
 155 | WARNING | Unused variable $allowed_html.
--------------------------------------------------------------------------

Comments

ilchovuchkov created an issue. See original summary.

vuil’s picture

StatusFileSize
new643 bytes
vuil’s picture

Status: Active » Needs review
dharti patel’s picture

Assigned: Unassigned » dharti patel
dharti patel’s picture

Assigned: dharti patel » Unassigned
Status: Needs review » Reviewed & tested by the community

Tested the #2 patch and after applying patch remove unused variable errors are eliminate from entity_embed.module file. Need to move to RTBC.

Thanks!

dave reid’s picture

Checking the value against not null seems odd. We may just need to revisit this. Should it be removed? Should it just be a not-empty check (not necessarily a null check)?

dave reid’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new627 bytes

Updated version with simplified if statement.

dave reid’s picture

StatusFileSize
new632 bytes

  • Dave Reid committed 587a004 on 8.x-1.x
    Issue #3072669 by Dave Reid, vuil: Removed unused variable in...
dave reid’s picture

Status: Needs review » Fixed

Committed #8 to 8.x-1.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.