Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: John Schaeffer <[email protected]>
Signed-off-by: Bailin He <[email protected]>
  • Loading branch information
bailinhe and jnschaeffer authored May 6, 2024
1 parent b72d193 commit ee5599f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/query/relations.go
Original file line number Diff line number Diff line change
Expand Up @@ -1252,9 +1252,7 @@ func (e *engine) rollbackUpdates(ctx context.Context, updates []*pb.Relationship
var op pb.RelationshipUpdate_Operation

switch u.Operation {
case pb.RelationshipUpdate_OPERATION_CREATE:
fallthrough
case pb.RelationshipUpdate_OPERATION_TOUCH:
case pb.RelationshipUpdate_OPERATION_CREATE, pb.RelationshipUpdate_OPERATION_TOUCH:
op = pb.RelationshipUpdate_OPERATION_DELETE
case pb.RelationshipUpdate_OPERATION_DELETE:
op = pb.RelationshipUpdate_OPERATION_TOUCH
Expand Down

0 comments on commit ee5599f

Please sign in to comment.