Skip to content

Commit

Permalink
wip: remove strange looking null check
Browse files Browse the repository at this point in the history
  • Loading branch information
sighphyre committed Nov 8, 2023
1 parent 4c50856 commit 05a17d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DefaultUnleash.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(
public function isEnabled(string $featureName, ?Context $context = null, bool $default = false): bool
{
$context ??= $this->configuration->getContextProvider()->getContext();
$feature = $this->findFeature($featureName, $context) ?? null;
$feature = $this->findFeature($featureName, $context);

if ($feature !== null) {
if (method_exists($feature, 'hasImpressionData') && $feature->hasImpressionData()) {
Expand Down

0 comments on commit 05a17d4

Please sign in to comment.