Require candidate decoders for artifact codecs
This commit is contained in:
@@ -49,6 +49,10 @@ func (*observedNotesCodec) Decode(content []byte) (codecNotes, error) {
|
||||
return value, json.Unmarshal(content, &value)
|
||||
}
|
||||
|
||||
func (c *observedNotesCodec) DecodeCandidate(content []byte) (codecNotes, error) {
|
||||
return c.Decode(content)
|
||||
}
|
||||
|
||||
func firstNote(value codecNotes) string {
|
||||
if len(value.Items) == 0 {
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user