Skip to content

Commit

Permalink
Fix inefficial assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
horpto authored and jackc committed Jul 31, 2023
1 parent bd2934d commit dd43344
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion array.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ func arrayParseQuotedValue(buf *bytes.Buffer) (string, bool, error) {
return "", false, err
}
case '"':
r, _, err = buf.ReadRune()
_, _, err = buf.ReadRune()
if err != nil {
return "", false, err
}
Expand Down
2 changes: 1 addition & 1 deletion hstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ func parseHstore(s string) (k []string, v []Text, err error) {
case end:
err = errors.New("Found EOS after ',', expecting space")
case (unicode.IsSpace(r)):
r, end = p.Consume()
p.Consume()
state = hsKey
default:
err = fmt.Errorf("Invalid character '%c' after ', ', expecting \"", r)
Expand Down

0 comments on commit dd43344

Please sign in to comment.