You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jb...@apache.org on 2022/11/01 15:24:54 UTC

[activemq-artemis] branch main updated: ARTEMIS-4079 quick semantic fix

This is an automated email from the ASF dual-hosted git repository.

jbertram pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/main by this push:
     new 38fc74749b ARTEMIS-4079 quick semantic fix
38fc74749b is described below

commit 38fc74749b6eb5f5e02f21ff2193073cb682bb28
Author: Justin Bertram <jb...@apache.org>
AuthorDate: Tue Nov 1 10:22:55 2022 -0500

    ARTEMIS-4079 quick semantic fix
---
 .../activemq/artemis/cli/commands/messages/ConnectionAbstract.java  | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/messages/ConnectionAbstract.java b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/messages/ConnectionAbstract.java
index c9297b973e..3d5911a303 100644
--- a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/messages/ConnectionAbstract.java
+++ b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/messages/ConnectionAbstract.java
@@ -226,14 +226,16 @@ public class ConnectionAbstract extends InputAbstract {
    private String inputUser(String user) {
       if (user == null) {
          this.user = input("--user", "Type the username for a retry", null);
+         return this.user;
       }
-      return this.user;
+      return user;
    }
 
    private String inputPassword(String password) {
       if (password == null) {
          this.password = inputPassword("--password", "Type the password for a retry", null);
+         return this.password;
       }
-      return this.password;
+      return password;
    }
 }