args: add simple value accessor

This commit is contained in:
Michael Muré
2024-11-27 12:23:10 +01:00
parent 20369dba49
commit ba4db9bce8
3 changed files with 17 additions and 1 deletions

View File

@@ -121,7 +121,6 @@ func (m *Meta) GetEncryptedBytes(key string, encryptionKey []byte) ([]byte, erro
// GetNode retrieves a value as a raw IPLD node.
// Returns ErrNotFound if the given key is missing.
// Returns datamodel.ErrWrongKind if the value has the wrong type.
func (m *Meta) GetNode(key string) (ipld.Node, error) {
v, ok := m.Values[key]
if !ok {