Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Commit

Permalink
fix: add var checking when getting service status (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-chambrion authored Mar 6, 2017
1 parent fce810c commit bb3b680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Service/CircuitBreakerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function isOpen(string $service): bool
$this->status[$service] = self::OPEN;
}

return $this->status[$service] === self::OPEN;
return isset($this->status[$service]) && $this->status[$service] === self::OPEN;
}

/**
Expand Down

0 comments on commit bb3b680

Please sign in to comment.