Skip to content

Commit e82da9e

Browse files
feat: change loop
1 parent 4133655 commit e82da9e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/analyzer/analyzer.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,11 +464,11 @@ func getBasicLitValue(basicLit *ast.BasicLit) string {
464464
return ""
465465
}
466466
var val strings.Builder
467-
for i := range basicLit.Value {
468-
if basicLit.Value[i] == '"' {
467+
for _, r := range basicLit.Value {
468+
if r == '"' {
469469
continue
470470
} else {
471-
val.WriteByte(basicLit.Value[i])
471+
val.WriteRune(r)
472472
}
473473
}
474474
return val.String()

0 commit comments

Comments
 (0)