Skip to content

Commit 679e5ca

Browse files
committed
minor cleanup
1 parent 5b21425 commit 679e5ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LaunchDarkly/VariationOrRollout.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ public function variationIndexForUser($user, $_key, $_salt)
5454
return $this->_variation;
5555
}
5656
$rollout = $this->_rollout;
57-
if ($rollout == null) {
57+
if ($rollout === null) {
5858
return null;
5959
}
6060
$variations = $rollout->getVariations();
61-
if ($variations != null && count($variations) > 0) {
61+
if ($variations) {
6262
$bucketBy = $this->_rollout->getBucketBy() === null ? "key" : $this->_rollout->getBucketBy();
6363
$bucket = self::bucketUser($user, $_key, $bucketBy, $_salt);
6464
$sum = 0.0;

0 commit comments

Comments
 (0)