From abf78681e21afb3da1aad23060d3336dd8a7ee9f Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Tue, 10 May 2022 22:52:27 +0900 Subject: Follow golangci-lint --- driver/parser.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'driver/parser.go') diff --git a/driver/parser.go b/driver/parser.go index e8d9968..dbebec3 100644 --- a/driver/parser.go +++ b/driver/parser.go @@ -394,9 +394,7 @@ type stateStack struct { func (s *stateStack) enableExploratoryMode() { s.itemsExp = make([]int, len(s.items)) - for i, v := range s.items { - s.itemsExp[i] = v - } + copy(s.itemsExp, s.items) } func (s *stateStack) disableExploratoryMode() { -- cgit v1.2.3