Skip to content

fix for crash when progress bars had a size of zero

Warren Gifford requested to merge cp/fix-zero-len-progress-bars into main

Created by: chrispine

If a progress bar was created with a size of zero (bar.Max was 0), then src-cli would crash in rendering. (This could happen if some engineering manager didn't know what they were doing when using campaigns and tried to create one with no repos found, for example.)

Instead, we just draw a zero-width bar if bar.Max is zero.

Merge request reports

Loading