Closed
Description
This function needs to be shorter to reduce the complexity of it, and make it easier to understand.
Currently the code turns off the linter for this issue with "//nolint:funlen".
- refactor the code to make the function short and easier to understand
- See the contributing guide on how to get started.
- See headlamp/backend/pkg/portforward/handler_test.go file.
- See backend contributing guide
- To run the linter,
make backend-lint
- How to run tests:
make backend-test
Related umbrella backend refactoring clean up issue #855 (other pieces of code have the linter disabled and could also be fixed up, feel free to refactor a different function.) If you've already refactored one function, please leave the rest for others.