From 36cc69ad3671938b4ea01b1af3d9becdbac4ee0f Mon Sep 17 00:00:00 2001 From: Ewan Chou Date: Sat, 12 Sep 2015 22:28:17 +0800 Subject: [PATCH] plan: show fix golint check --- plan/plans/show.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plan/plans/show.go b/plan/plans/show.go index c305371c3b..4330067f7f 100644 --- a/plan/plans/show.go +++ b/plan/plans/show.go @@ -373,12 +373,12 @@ func (s *ShowPlan) Close() error { } // UseNext implements NextPlan interface -func (r *ShowPlan) UseNext() bool { +func (s *ShowPlan) UseNext() bool { return true } // Reset used for test -func (r *ShowPlan) Reset() { - r.rows = nil - r.cursor = 0 +func (s *ShowPlan) Reset() { + s.rows = nil + s.cursor = 0 }