backend: Refactor headlamp.go refreshAndCacheNewToken to be shorter #1848
Labels
backend
Issues related to the backend
good first issue
Good for newcomers
quality
Related to improving the quality of the app
This function needs to be shorter to reduce the complexity of it, and make it easier to understand. Perhaps it should be 2 or more functions.
Currently the code turns off the linter for this issue with "//nolint:funlen".
make backend-lint
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.)
The text was updated successfully, but these errors were encountered: