Skip to content

Commit

Permalink
Remove literal zeroo from Toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored and kpicaza committed Aug 27, 2022
1 parent 22d39b1 commit 11fe3d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Read/Toggle.php
Expand Up @@ -6,7 +6,6 @@

final class Toggle
{
private const ZERO = 0;
private FeatureFinder $featureFinder;

public function __construct(FeatureFinder $featureRepository)
Expand All @@ -24,7 +23,7 @@ public function isEnabled(string $featureId, ?ConsumerIdentity $identity = null)

$strategies = $feature->strategies();

if (self::ZERO === $strategies->count() || null === $identity) {
if ($strategies->isEmpty() || null === $identity) {
return true;
}

Expand Down

0 comments on commit 11fe3d2

Please sign in to comment.