aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2022-05-10 22:52:27 +0900
committerRyo Nihei <nihei.dev@gmail.com>2022-05-10 23:14:52 +0900
commitabf78681e21afb3da1aad23060d3336dd8a7ee9f (patch)
tree4ad0ce5e688208d4c611360d49c409beb075af51
parentAdd spelling inconsistencies check (diff)
downloadurubu-abf78681e21afb3da1aad23060d3336dd8a7ee9f.tar.gz
urubu-abf78681e21afb3da1aad23060d3336dd8a7ee9f.tar.xz
Follow golangci-lint
-rw-r--r--driver/parser.go4
1 files changed, 1 insertions, 3 deletions
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() {