Skip to content

Commit

Permalink
Fix not using empty in RedisNg Adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
LKaemmerling authored Dec 2, 2024
1 parent 66cdb30 commit 27e01b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Prometheus/Storage/RedisNg.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ private function ensureOpenConnection(): void
$authParams[] = $this->options['password'];
}

if (!empty($authParams)) {
if ($authParams !== []) {
$this->redis->auth($authParams);
}

Expand Down

0 comments on commit 27e01b5

Please sign in to comment.