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

Useless Control Flow in AbstractBulkOperationAction.isCanDisableMailNotifications() method

    XMLWordPrintable

Details

    Description

      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!

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: