Skip to content

Commit ff877b8

Browse files
committed
[broker-11] fix for code review
1 parent 786ab80 commit ff877b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/ss/mqtt/broker/service/impl/InMemoryClientIdRegistry.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ public InMemoryClientIdRegistry(@NotNull String availableChars, int maxClientIdL
4141
return false;
4242
} else {
4343
dictionary.put(id, CLIENT_ID_VALUE);
44+
return true;
4445
}
45-
46-
return true;
4746
});
4847

4948
//noinspection ConstantConditions

0 commit comments

Comments
 (0)