Skip to content

Commit

Permalink
chore: add semicolon to fix cover tool bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tdakkota committed Jan 17, 2022
1 parent ffe5b60 commit 97d4e11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dec_skip.go
Expand Up @@ -336,6 +336,7 @@ readStr:
}

readTok:
; // Bug in cover tool, see https://github.com/golang/go/issues/28319.
switch {
case c == '"':
d.head += i + 1
Expand Down
1 change: 1 addition & 0 deletions dec_str.go
Expand Up @@ -124,6 +124,7 @@ func (d *Decoder) str(v value) (value, error) {
return d.strSlow(v)
}
readTok:
; // Bug in cover tool, see https://github.com/golang/go/issues/28319.
switch {
case c == '"':
buf := d.buf[d.head:d.tail]
Expand Down

0 comments on commit 97d4e11

Please sign in to comment.