From e32b907c6aae5c810ab343ba542f8fb91cb28948 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Fri, 24 Feb 2023 21:25:20 +0800 Subject: [PATCH] make lint happy --- apitable.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apitable.go b/apitable.go index 0854d04..5ccbd3b 100644 --- a/apitable.go +++ b/apitable.go @@ -154,11 +154,11 @@ func (t *WTable) Justification(val string) *WTable { // end:右对齐。 // both:两端对齐。 // distribute:分散对齐。 -func (t *WTableRow) Justification(val string) *WTableRow { - if t.TableRowProperties.Justification == nil { - t.TableRowProperties.Justification = &Justification{Val: val} - return t +func (w *WTableRow) Justification(val string) *WTableRow { + if w.TableRowProperties.Justification == nil { + w.TableRowProperties.Justification = &Justification{Val: val} + return w } - t.TableRowProperties.Justification.Val = val - return t + w.TableRowProperties.Justification.Val = val + return w }