valepakh commented on code in PR #7402:
URL: https://github.com/apache/ignite-3/pull/7402#discussion_r2686756212


##########
modules/cli/src/main/java/org/apache/ignite/internal/cli/call/cluster/unit/DeployUnitCall.java:
##########
@@ -64,27 +67,52 @@ public CompletableFuture<CallOutput<String>> 
execute(DeployUnitCallInput input)
         if (Files.notExists(path)) {
             return completedFuture(DefaultCallOutput.failure(new 
FileNotFoundException(path.toString())));
         }
+
+        DeploymentContent content;
+        try {
+            content = input.recursive() ? createZipContent(path) : 
createFilesContent(path);

Review Comment:
   Let's move the return here and merge declaration and assignment



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to