diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2022-05-10 22:52:27 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2022-05-10 23:14:52 +0900 |
commit | abf78681e21afb3da1aad23060d3336dd8a7ee9f (patch) | |
tree | 4ad0ce5e688208d4c611360d49c409beb075af51 | |
parent | Add spelling inconsistencies check (diff) | |
download | urubu-abf78681e21afb3da1aad23060d3336dd8a7ee9f.tar.gz urubu-abf78681e21afb3da1aad23060d3336dd8a7ee9f.tar.xz |
Follow golangci-lint
-rw-r--r-- | driver/parser.go | 4 |
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() { |