Commit 4d0a7ba5 authored by catch's avatar catch
Browse files

Issue #3228656 by bradjones1, Spokje: Remove outdated @todo in HtmlResponseAttachmentsProcessor

(cherry picked from commit fdfc5c6e)
parent cc4109fe
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -112,10 +112,7 @@ public function __construct(AssetResolverInterface $asset_resolver, ConfigFactor
   * {@inheritdoc}
   */
  public function processAttachments(AttachmentsInterface $response) {
    // @todo Convert to assertion once https://www.drupal.org/node/2408013 lands
    if (!$response instanceof HtmlResponse) {
      throw new \InvalidArgumentException('\Drupal\Core\Render\HtmlResponse instance expected.');
    }
    assert($response instanceof HtmlResponse);

    // First, render the actual placeholders; this may cause additional
    // attachments to be added to the response, which the attachment