瀏覽代碼

Remove useless ternary operator

Nils Adermann 12 年之前
父節點
當前提交
bbdbfc97ea
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/Package/LinkConstraint/VersionConstraint.php

+ 1 - 1
src/Composer/Package/LinkConstraint/VersionConstraint.php

@@ -60,7 +60,7 @@ class VersionConstraint extends SpecificConstraint
 
         // dev- versions can not be compared with version_compare
         if ('dev-' === substr($provider->version, 0, 4) && 'dev-' === substr($this->version, 0, 4)) {
-            return $isEqualOp && $isProviderEqualOp && $provider->version === $this->version ? true : false;
+            return $isEqualOp && $isProviderEqualOp && $provider->version === $this->version;
         }
 
         // '!=' operator is match when other operator is not '==' operator or version is not match