gnodet-bot commented on code in PR #29836:
URL: https://github.com/apache/camel/pull/29836#discussion_r4563170791


##########
components/camel-openfga/src/main/java/org/apache/camel/component/openfga/OpenFgaEndpoint.java:
##########
@@ -142,6 +142,19 @@ protected void doStart() throws Exception {
      * decision and is a thoroughly misleading thing to debug.
      */
     private void validateOperationOptions() {
+        if (operation == OpenFgaOperation.batchCheck) {

Review Comment:
   ⚠️ **Dead null check — still open.** `getBatchCheckMode()` can never return 
`null` (the field has a non-null default of `OpenFgaBatchCheckMode.client`). 
Remove the null guard and its error message — they signal that `null` is a 
valid API state to defend against, which is misleading.
   
   ```suggestion
           }
   ```



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