Skip to content

Commit

Permalink
In the case of the AuthenticatedSet the valueBytes is 0 length
Browse files Browse the repository at this point in the history
  • Loading branch information
karimodm committed Aug 1, 2023
1 parent c9e270e commit 3dddbb8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ds/authenticated_map_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,6 @@ func (m *authenticatedMap[K, V]) Set(key K, value V) error {
return ierrors.Wrap(err, "failed to serialize value")
}

if len(valueBytes) == 0 {
return ierrors.Errorf("value cannot be empty")
}

keyBytes, err := m.kToBytes(key)
if err != nil {
return ierrors.Wrap(err, "failed to serialize key")
Expand Down

0 comments on commit 3dddbb8

Please sign in to comment.