mirror of
https://github.com/mum4k/termdash.git
synced 2025-04-28 13:48:51 +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)
|
ar := rowLabelArea(y, labelWidth)
|
||||||
pos, err := align.Text(ar, v.Text(), align.HorizontalRight, align.VerticalMiddle)
|
pos, _ := align.Text(ar, v.Text(), align.HorizontalRight, align.VerticalMiddle)
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return &Label{
|
return &Label{
|
||||||
Value: v,
|
Value: v,
|
||||||
Pos: pos,
|
Pos: pos,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user