Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-2195

Clean a piece of code in ResourceRequest

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      if (numContainersComparison == 0) {
        return 0;
      } else {
        return numContainersComparison;
      }
      

      This code should be cleaned as

      return numContainersComparison;
      

        Attachments

          Activity

            People

            • Assignee:
              ywskycn Wei Yan
              Reporter:
              ywskycn Wei Yan
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: