瀏覽代碼

Remove unecessary brackets

Nils Adermann 13 年之前
父節點
當前提交
f193d61dfe
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Composer/DependencyResolver/RuleWatchNode.php

+ 2 - 2
src/Composer/DependencyResolver/RuleWatchNode.php

@@ -37,8 +37,8 @@ class RuleWatchNode
 
         $literals = $rule->getLiterals();
 
-        $this->watch1 = (count($literals) > 0) ? $literals[0] : 0;
-        $this->watch2 = (count($literals) > 1) ? $literals[1] : 0;
+        $this->watch1 = count($literals) > 0 ? $literals[0] : 0;
+        $this->watch2 = count($literals) > 1 ? $literals[1] : 0;
     }
 
     /**