Przeglądaj źródła

[HttpKernel] removed unnecessary code

Fabien Potencier 14 lat temu
rodzic
commit
8ac1a189bf

+ 2 - 2
src/Symfony/Component/HttpKernel/HttpCache/Store.php

@@ -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;