You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In encode.go, type encodeState has two methods, stringBytes and string, each of which return (int, error). In both cases, the only error that is returned from the methods is nil, and the int that is returned is never read:
In encode.go,
type encodeState
has two methods,stringBytes
andstring
, each of which return (int, error). In both cases, the only error that is returned from the methods isnil
, and the int that is returned is never read:_, err := e.stringBytes(...)
on lines 449, 465e.string(...)
on lines 544, 546, 580, 615Return values are similarly ignored in
encode_test.go
:_, err := e.string(...)
on line 384_, err := e.stringBytes(...)
on line 390I believe these methods can simply return nothing without any change in functionality.
The text was updated successfully, but these errors were encountered: