Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marcreichel committed Feb 21, 2022
1 parent cf48e22 commit 4730fc0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Service/GithubConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ class GithubConnector

public function __construct(private ?ConfigValues $config)
{
if (!$config) {
return;
}
$this->client = new Client([
'headers' => [
'Accept' => 'application/vnd.github.v3+json',
Expand Down
3 changes: 3 additions & 0 deletions src/Service/MantisConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ class MantisConnector

public function __construct(private ?ConfigValues $config)
{
if (!$config) {
return;
}
$this->client = new Client([
'headers' => [
'Authorization' => $this->config->getMantisToken(),
Expand Down

0 comments on commit 4730fc0

Please sign in to comment.