(*ProtoNode).RawData
use incorrectly panic instead of returning
#90
Labels
need/triage
Needs initial labeling and prioritization
Where this was found: ipfs/kubo#9297
(*ProtoNode).RawData
use incorrectly panics, there are cases where consumers can because of bad options trigger an error.My dumb first instict would be to make it return
([]byte, error)
but AFAIT this is trying to fit an interface so we can't do this.I guess the alternative is to do the serialisation in the write functions (which do return errors) and save the serialised bytes instead.
The text was updated successfully, but these errors were encountered: