We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0a8f04 commit d5f76d3Copy full SHA for d5f76d3
internal/charset/charset.go
@@ -246,7 +246,7 @@ func fromHTML(s scan.Bytes) string {
246
if needPragma == dontKnow {
247
continue
248
}
249
- if needPragma == doNeedPragma && gotPragma == false {
+ if needPragma == doNeedPragma && !gotPragma {
250
251
252
@@ -357,8 +357,8 @@ func getAValue(s *scan.Bytes) (_ []byte, hasMore bool) {
357
358
end++
359
// Step 10
360
- switch {
361
- case bap == '"' || bap == '\'':
+ switch bap {
+ case '"', '\'':
362
// quote loop
363
for {
364
c := s.Pop()
@@ -371,7 +371,7 @@ func getAValue(s *scan.Bytes) (_ []byte, hasMore bool) {
371
372
373
374
- case bap == '>':
+ case '>':
375
return nil, false
376
377
0 commit comments