Skip to content

Commit

Permalink
Remove stray comment
Browse files Browse the repository at this point in the history
  • Loading branch information
arp242 committed Jun 3, 2023
1 parent d9b9172 commit c859a22
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions encode.go
Expand Up @@ -136,10 +136,8 @@ func NewEncoder(w io.Writer) *Encoder {
// document.
func (enc *Encoder) Encode(v interface{}) error {
rv := eindirect(reflect.ValueOf(v))

// XXX

if err := enc.safeEncode(Key([]string{}), rv); err != nil {
err := enc.safeEncode(Key([]string{}), rv)
if err != nil {
return err
}
return enc.w.Flush()
Expand Down

0 comments on commit c859a22

Please sign in to comment.