[HttpKernel] removed unnecessary code

This commit is contained in:
Fabien Potencier 2011-01-29 12:18:16 +01:00
parent f2a3135bd0
commit 8ac1a189bf

View File

@ -151,7 +151,7 @@ class Store
$digest = 'en'.sha1($response->getContent());
if (false === $this->save($digest, $response->getContent())) {
throw new \RuntimeException(sprintf('Unable to store the entity.'));
throw new \RuntimeException('Unable to store the entity.');
}
$response->headers->set('X-Content-Digest', $digest);
@ -180,7 +180,7 @@ class Store
array_unshift($entries, array($storedEnv, $headers));
if (false === $this->save($key, serialize($entries))) {
throw new \RuntimeException(sprintf('Unable to store the metadata.'));
throw new \RuntimeException('Unable to store the metadata.');
}
return $key;