Commit fdfc5c6e authored by catch's avatar catch
Browse files

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

parent 185cded0
......@@ -112,10 +112,7 @@ public function __construct(AssetResolverInterface $asset_resolver, ConfigFactor
* {@inheritdoc}
public function processAttachments(AttachmentsInterface $response) {
// @todo Convert to assertion once 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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment