Skip to content

Commit

Permalink
fix: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasrothenberger committed Oct 23, 2024
1 parent 7546b11 commit d36e278
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ def get_cyclomatic_complexities_for_boxplot(
lower_quartile = sorted_cyclomatic_complexities[lower_quartile_idx]
if len(sorted_cyclomatic_complexities) == 1:
upper_quartile_idx = 0
if len(sorted_cyclomatic_complexities) == upper_quartile_idx:
upper_quartile_idx -= 1
upper_quartile = sorted_cyclomatic_complexities[upper_quartile_idx]

return cc_min, cc_max, cc_avg, lower_quartile, upper_quartile

0 comments on commit d36e278

Please sign in to comment.