Remove useless ternary operator
parent
2f7130200a
commit
bbdbfc97ea
|
@ -60,7 +60,7 @@ class VersionConstraint extends SpecificConstraint
|
||||||
|
|
||||||
// dev- versions can not be compared with version_compare
|
// dev- versions can not be compared with version_compare
|
||||||
if ('dev-' === substr($provider->version, 0, 4) && 'dev-' === substr($this->version, 0, 4)) {
|
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
|
// '!=' operator is match when other operator is not '==' operator or version is not match
|
||||||
|
|
Loading…
Reference in New Issue