Skip to content

Commit

Permalink
use the already-defined value of $port instead of hard-coding
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Jun 23, 2023
1 parent a2acb9f commit e2a8ee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion object-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ public function build_client_parameters( $redis_server ) {
// port must be null or socket won't connect.
$port = null;
} else { // tcp connection.
$port = ! empty( $redis_server['port'] ) ? $redis_server['port'] : 6379;
$port = ! empty( $redis_server['port'] ) ? $redis_server['port'] : $port;
}

$defaults = [
Expand Down

0 comments on commit e2a8ee2

Please sign in to comment.