Skip to content

Commit d5f76d3

Browse files
golangci-lint suggestions
1 parent c0a8f04 commit d5f76d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/charset/charset.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ func fromHTML(s scan.Bytes) string {
246246
if needPragma == dontKnow {
247247
continue
248248
}
249-
if needPragma == doNeedPragma && gotPragma == false {
249+
if needPragma == doNeedPragma && !gotPragma {
250250
continue
251251
}
252252
}
@@ -357,8 +357,8 @@ func getAValue(s *scan.Bytes) (_ []byte, hasMore bool) {
357357
}
358358
end++
359359
// Step 10
360-
switch {
361-
case bap == '"' || bap == '\'':
360+
switch bap {
361+
case '"', '\'':
362362
// quote loop
363363
for {
364364
c := s.Pop()
@@ -371,7 +371,7 @@ func getAValue(s *scan.Bytes) (_ []byte, hasMore bool) {
371371
}
372372
end++
373373
}
374-
case bap == '>':
374+
case '>':
375375
return nil, false
376376
}
377377

0 commit comments

Comments
 (0)