diff options
| author | Scott <[email protected]> | 2022-02-02 23:35:38 -0800 |
|---|---|---|
| committer | Scott <[email protected]> | 2022-02-02 23:35:38 -0800 |
| commit | 803a21e8f1053279b1d0f97ebc0d5712837a84a8 (patch) | |
| tree | 67ddb4ecea93749b626658db722417f6c45e4d91 /histogram.py | |
| parent | 7ff2af6fe7bffea90dc4a31c93140c189917c659 (diff) | |
Fix a bug in histogram.
Diffstat (limited to 'histogram.py')
| -rw-r--r-- | histogram.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/histogram.py b/histogram.py index cea8b76..ba10a01 100644 --- a/histogram.py +++ b/histogram.py @@ -81,7 +81,7 @@ class SimpleHistogram(Generic[T]): last_bucket_start = bucket[0] # beginning of range if max_population is None or pop > max_population: max_population = pop # bucket with max items - if len(self.buckets) == 0 or max_population is None: + if max_population is None: return txt max_label_width: Optional[int] = None |
