Skip to content

Commit

Permalink
Reduce the complexity of function Lower.
Browse files Browse the repository at this point in the history
According to Clang-Tidy's [readability-function-cognitive-complexity](https://clang.llvm.org/extra/clang-tidy/checks/readability/function-cognitive-complexity.html), the recommended threshold is 15. However, the function `Lower` had a cognitive complexity of 134. This number is now reduced to 18. Although it's still higher than the threshold, it's in a much better state than before.

PiperOrigin-RevId: 676086424
  • Loading branch information
ghpvnist authored and Google-ML-Automation committed Sep 18, 2024
1 parent f13c760 commit aecd9c5
Showing 1 changed file with 319 additions and 248 deletions.
Loading

0 comments on commit aecd9c5

Please sign in to comment.