Skip to content

Commit

Permalink
Improve handling of empty env vars for TrackJS token
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannik Zschiesche committed Jan 30, 2020
1 parent a98c115 commit 094c126
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
3.0.1
=====

* (bug) Improve handling of empty env vars for TrackJS token


3.0.0
=====

Expand Down
2 changes: 1 addition & 1 deletion src/Config/HostingConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getGitCommit () : ?string
*/
public function getTrackJsToken () : ?string
{
return null !== $this->config["trackjs"]
return !empty($this->config["trackjs"])
? (string) $this->config["trackjs"]
: null;
}
Expand Down

0 comments on commit 094c126

Please sign in to comment.