[HttpKernel] removed unnecessary code
This commit is contained in:
parent
f2a3135bd0
commit
8ac1a189bf
@ -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;
|
||||
|
Reference in New Issue
Block a user