Skip to content

Commit

Permalink
[MQTT to Pub/Sub] Spotless fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
an2x committed Oct 4, 2023
1 parent b0891b4 commit 9ada4bc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ public static void main(String[] args) {

public static void validate(MqttToPubsubOptions options) {
if (options != null) {
if ((options.getUsername() != null && !options.getUsername().isEmpty())
&& (options.getPassword() == null || options.getPassword().isBlank())) {
if ((options.getUsername() != null && !options.getUsername().isEmpty())
&& (options.getPassword() == null || options.getPassword().isBlank())) {
throw new IllegalArgumentException(
"While username is provided, password is required for authentication");
}
Expand Down

0 comments on commit 9ada4bc

Please sign in to comment.