1
0
Fork 0

Remove useless ternary operator

pull/902/head
Nils Adermann 2012-07-11 20:36:44 +02:00
parent 2f7130200a
commit bbdbfc97ea
1 changed files with 1 additions and 1 deletions

View File

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