Skip to content

Commit

Permalink
encoding/asn1: fix unused assignments
Browse files Browse the repository at this point in the history
Unused assignment for `err` encoding/asn1/marshal.go:622:3
Unused assignment for `err` encoding/asn1/marshal.go:650:5

Change-Id: I4226238645ce3640f25124cb405444e61439fd3f
Reviewed-on: https://go-review.googlesource.com/13847
Reviewed-by: Brad Fitzpatrick <[email protected]>
Run-TryBot: Brad Fitzpatrick <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
  • Loading branch information
Tarmigan Casebolt authored and bradfitz committed Aug 24, 2015
1 parent 759210b commit 201a05a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/encoding/asn1/marshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ func marshalField(out *forkableWriter, v reflect.Value, params fieldParameters)
})
}

return nil
return err
}

// Marshal returns the ASN.1 encoding of val.
Expand All @@ -648,5 +648,5 @@ func Marshal(val interface{}) ([]byte, error) {
return nil, err
}
_, err = f.writeTo(&out)
return out.Bytes(), nil
return out.Bytes(), err
}

0 comments on commit 201a05a

Please sign in to comment.