Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-2181

remove named returns in checkQueueHierarchyForPlacement

    XMLWordPrintableJSON

Details

    Description

      In the pkg/common/configs/configvalidator.go the checkQueueHierarchyForPlacement function uses named return values. This can easily lead to difficult to diagnose bugs specially with the number of naked returns and the length of the function.

      We should remove the named return values and the naked returns.

      Note the linter "nakedret" complains about this when you run a simple ./tools/golangci-lint run

      Attachments

        Issue Links

          Activity

            People

              plsmaop SHIAO SZU CHEN
              wilfreds Wilfred Spiegelenburg
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: