Skip to content

Commit 099ef86

Browse files
committed
fix: prevent crash in Chart.Render when repository has no commits
1 parent b4201ed commit 099ef86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Views/Chart.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public override void Render(DrawingContext context)
5454
base.Render(context);
5555

5656
var samples = _samples;
57-
if (samples == null || samples.Count == 0)
57+
if (samples == null || samples.Count <= 0)
5858
return;
5959

6060
var w = Bounds.Width;

0 commit comments

Comments
 (0)