Skip to content

Commit

Permalink
comment typos
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Jun 20, 2023
1 parent f55c171 commit aa59a2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class PskAuthenticationHandler implements AuthenticationRequestHandler {
private static final String PSK;
static {
String pskFromConfig = Configuration.getInstance().getStringWithDefault("authentication.psk", null);
// If this feature is enabled by no value given, generate a 64-bit number and encode as
// If this feature is enabled but no value is given, generate a 64-bit number and encode as
// base-36 (lower case and numbers).
PSK = Optional.ofNullable(pskFromConfig).map(String::trim).filter(s -> !s.isEmpty())
.orElseGet(() -> Long.toString(Math.abs(new Random().nextLong()), 36));
Expand Down

0 comments on commit aa59a2e

Please sign in to comment.