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:
parent
ebbda29060
commit
0c05aeed5f
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user