Commit 0c001ca
authored
refactor: replace Split in loops with more efficient SplitSeq (#2502)
<!--
Please read and fill out this form before submitting your PR.
Please make sure you have reviewed our contributors guide before
submitting your
first PR.
NOTE: PR titles should follow semantic commits:
https://www.conventionalcommits.org/en/v1.0.0/
-->
## Overview
<!--
Please provide an explanation of the PR, including the appropriate
context,
background, goal, and rationale. If there is an issue with this
information,
please provide a tl;dr and link the issue.
Ex: Closes #<issue number>
-->
Optimize code using a more modern writing style which can make the code
more efficient and cleaner.
Official support by Go Team.
https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize.
Signed-off-by: pinglanlu <pinglanlu@outlook.com>1 parent 967b6b9 commit 0c001ca
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
| 388 | + | |
389 | 389 | | |
390 | | - | |
| 390 | + | |
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
| |||
0 commit comments