Closed oskarek closed 3 years ago
This is a calculations of the cyclomatic complexity before doing the refactoring:
And this is after:
(N = number of nodes, E = number of edges, CC = cyclomatic complexity)
We can see that the complexity has dropped from 11 to 7, which is a decrease of 36%.
The _next_request function is refactored to decrease its cyclomatic complexity. This is done by moving some complexity into separate functions.
will fix #30