ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [ant] bodewig commented on a change in pull request #115: Remove duplicated code
Date Mon, 27 Jul 2020 10:14:13 GMT

bodewig commented on a change in pull request #115:
URL: https://github.com/apache/ant/pull/115#discussion_r460788455



##########
File path: src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
##########
@@ -2671,27 +2664,24 @@ public void execute() throws BuildException {
          */
         public int getAction() {
             switch (getValue().toLowerCase(Locale.ENGLISH)) {
-            case "send":
-            case "put":
-                return SEND_FILES;
-            case "recv":
-            case "get":
-                return GET_FILES;
-            case "del":
-            case "delete":
-                return DEL_FILES;
-            case "list":
-                return LIST_FILES;
-            case "chmod":
-                return CHMOD;
-            case "mkdir":
-                return MK_DIR;
-            case "rmdir":
-                return RM_DIR;
-            case "site":
-                return SITE_CMD;
-            default:
-                return SEND_FILES;
+                case "recv":

Review comment:
       indentation?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message