Skip to content

Commit

Permalink
fix(connection): remove unnecessary process.env.CI reference (#2705)
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf authored Aug 13, 2024
1 parent b7b31dd commit 53de304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/redis-connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export class RedisConnection extends EventEmitter {
await this.initializing;
}
if (!this.shared) {
if (status == 'initializing' || force || process.env.CI) {
if (status == 'initializing' || force) {
// If we have not still connected to Redis, we need to disconnect.
this._client.disconnect();
} else {
Expand Down

0 comments on commit 53de304

Please sign in to comment.