Skip to content

Commit

Permalink
fixup! fixup! fix build and test errors due to proto v2 implementatio…
Browse files Browse the repository at this point in the history
…n - introduce test_utils.Separator to deal with random whitespaces in string representations - use proto.Equal for comparison of proto Messages, often wrapped in custom functions to suit the particular purpose - use pointers to avoid copying or use proto.Clone where necessary to copy messages

Signed-off-by: Alexander zur Bonsen <alexander.zur.bonsen@tngtech.com>
  • Loading branch information
alexzurbonsen committed Apr 27, 2022
1 parent 32f5c9c commit e97ab88
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func (store *sqlConfiguratorStorage) processEntityFieldsUpdate(pk string, update

// entToUpdateOut is an output parameter
func (store *sqlConfiguratorStorage) processEdgeUpdates(networkID string, update *EntityUpdateCriteria, entToUpdateOut *NetworkEntity) error {
= assocsToSetSpecified := update.AssociationsToSet != nil
assocsToSetSpecified := update.AssociationsToSet != nil
if !assocsToSetSpecified && funk.IsEmpty(update.AssociationsToAdd) && funk.IsEmpty(update.AssociationsToDelete) {
return nil
}
Expand Down

0 comments on commit e97ab88

Please sign in to comment.