Skip to content

Commit

Permalink
OEL-1159: Remove clause.
Browse files Browse the repository at this point in the history
  • Loading branch information
escuriola committed Apr 5, 2022
1 parent b4d9f56 commit e73fa92
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ function _oe_whitelabel_starter_event_preprocess_featured_media(array &$variable
}

$thumbnail = $media->get('thumbnail')->first();
if ($thumbnail === NULL) {
$cacheability->applyTo($variables);
return;
}
$variables['image'] = ImageValueObject::fromImageItem($thumbnail);

$cacheability->applyTo($variables);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ function oe_whitelabel_starter_news_preprocess_node__oe_sc_news(&$variables) {
}

$thumbnail = $media->get('thumbnail')->first();
if ($thumbnail === NULL) {
$cacheability->applyTo($variables);
return;
}
$variables['image'] = ImageValueObject::fromImageItem($thumbnail);

$cacheability->applyTo($variables);
Expand Down

0 comments on commit e73fa92

Please sign in to comment.