Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-10850

Useless Control Flow in AbstractBulkOperationAction.isCanDisableMailNotifications() method

XMLWordPrintable

      The error is on line 97:

      97 if (!isHasProjectPermission(Permissions.PROJECT_ADMIN, projectGV));
      98     return false;
      

      Please notice the semicolon ( ; ) at the end of line 97. This means that this block of code will always return false. Tests need to be written before making the changes!

            Unassigned Unassigned
            dushan@atlassian.com Dushan Hanuska [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: