justinmclean commented on code in PR #6091:
URL: https://github.com/apache/gravitino/pull/6091#discussion_r1902166036


##########
clients/cli/src/main/java/org/apache/gravitino/cli/commands/MetalakeEnable.java:
##########
@@ -69,4 +69,10 @@ public void handle() {
 
     System.out.println(msgBuilder);
   }
+
+  @Override
+  public Command verify() {
+    if (metalake == null) exitWithError(ErrorMessages.MISSING_METALAKE);
+    return super.verify();
+  }

Review Comment:
   You don't need to duplicate this method several times. Also check if it is 
actually needed, as we don't want to duplicate work the CLI or other code does.



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