Fix various golangci-lint errors (#2059)

This commit is contained in:
Anton Bretting
2022-02-12 20:28:08 +09:00
committed by GitHub
parent 9a2df3c0a2
commit 2f04831817
29 changed files with 362 additions and 263 deletions
+2 -2
View File
@@ -158,11 +158,11 @@ func ParseKey(key string) []string {
for _, rune := range key {
split := false
switch {
case escaped == false && rune == '\\':
case !escaped && rune == '\\':
escaped = true
continue
case rune == '.':
split = escaped == false
split = !escaped
}
escaped = false
if split {