浏览代码

Clean up leftovers.

Daniele Alessandri 15 年之前
父节点
当前提交
dd07c12402
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      lib/Predis.php

+ 0 - 4
lib/Predis.php

@@ -1697,7 +1697,6 @@ class StandardExecutor implements IPipelineExecutor {
 
 class SafeExecutor implements IPipelineExecutor {
     public function execute(\Predis\IConnection $connection, &$commands) {
-        $firstServerException = null;
         $sizeofPipe = count($commands);
         $values = array();
 
@@ -1724,9 +1723,6 @@ class SafeExecutor implements IPipelineExecutor {
                 $values[] = $exception->toResponseError();
             }
             catch (\Predis\CommunicationException $exception) {
-                if ($throwExceptions) {
-                    throw $exception;
-                }
                 $toAdd  = count($commands) - count($values);
                 $values = array_merge($values, array_fill(0, $toAdd, $exception));
                 break;