Skip to content

Commit

Permalink
format Connection
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed Aug 15, 2024
1 parent a7d4a81 commit cd7fdb2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/redis/clients/jedis/Connection.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public String toIdentityString() {
.append(id)
.append(", L:")
.append(localAddr)
.append(broken? " ! " : " - ")
.append(broken ? " ! " : " - ")
.append("R:")
.append(remoteAddr)
.append(']');
Expand Down Expand Up @@ -455,7 +455,7 @@ public List<Object> getMany(final int count) {

/**
* Check if the client name libname, libver, characters are legal
*
*
* @param info the name
* @return Returns true if legal, false throws exception
* @throws JedisException if characters illegal
Expand Down Expand Up @@ -499,8 +499,9 @@ protected void initializeFromClientConfig(final JedisClientConfig config) {
}

ClientSetInfoConfig setInfoConfig = config.getClientSetInfoConfig();
if (setInfoConfig == null)
if (setInfoConfig == null) {
setInfoConfig = ClientSetInfoConfig.DEFAULT;
}

if (!setInfoConfig.isDisabled()) {
String libName = JedisMetaInfo.getArtifactId();
Expand Down

0 comments on commit cd7fdb2

Please sign in to comment.