1
0
mirror of https://github.com/mum4k/termdash.git synced 2025-04-27 13:48:49 +08:00

Properly dismiss err object

This commit is contained in:
Michael Teuscher 2019-01-22 23:45:29 +01:00
parent ebbda29060
commit 0c05aeed5f
No known key found for this signature in database
GPG Key ID: 3F38EF5228BAF9AF

View File

@ -89,10 +89,7 @@ func rowLabel(scale *YScale, y int, labelWidth int) (*Label, error) {
}
ar := rowLabelArea(y, labelWidth)
pos, err := align.Text(ar, v.Text(), align.HorizontalRight, align.VerticalMiddle)
if err != nil {
return nil, err
}
pos, _ := align.Text(ar, v.Text(), align.HorizontalRight, align.VerticalMiddle)
return &Label{
Value: v,
Pos: pos,