Skip to content

Commit

Permalink
Update internal/storage/driver/memory/binding.go
Browse files Browse the repository at this point in the history
Co-authored-by: Jarosław Pieszka <[email protected]>
  • Loading branch information
ralikio and jaroslaw-pieszka authored Oct 24, 2024
1 parent 2d15c1f commit bda33fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/storage/driver/memory/binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (s *Binding) Insert(binding *internal.Binding) error {
defer s.mu.Unlock()

if foundBinding, found := s.data[binding.ID]; found && binding.InstanceID == foundBinding.InstanceID {
return dberr.AlreadyExists("binding with id %s already exist", binding.ID)
return dberr.AlreadyExists("binding with id %s already exists", binding.ID)
}
s.data[binding.ID] = *binding

Expand Down

0 comments on commit bda33fd

Please sign in to comment.