[ 
https://issues.apache.org/jira/browse/NIFI-14140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17911633#comment-17911633
 ] 

David Handermann commented on NIFI-14140:
-----------------------------------------

Interesting to see those unused operatePermissions references. The dtoFactory 
is both creating the object and running some authorization check, so it seems 
like the best approach is to just remove the declared return value, but keep 
the call to dtoFactory,.createPermissionsDto().

> Apply PMD's UnusedLocalVariable across the code base
> ----------------------------------------------------
>
>                 Key: NIFI-14140
>                 URL: https://issues.apache.org/jira/browse/NIFI-14140
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Daniel Stieglitz
>            Assignee: Daniel Stieglitz
>            Priority: Minor
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to