Skip to content

Commit

Permalink
Replace switch with if
Browse files Browse the repository at this point in the history
  • Loading branch information
animesh2049 committed Mar 13, 2020
1 parent b5a910a commit 3afce13
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions worker/background_mutation.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,12 @@ func (e *executor) processMutationCh(ch chan *subMutation) {
for _, edge := range payload.edges {
for {
err := runMutation(payload.ctx, edge, ptxn)
switch {
case err == nil:
if err == nil {
break
case err != posting.ErrRetry:
}
if err != posting.ErrRetry {
glog.Errorf("Error while mutating: %v", err)
break
default:
}
}
}
Expand Down

0 comments on commit 3afce13

Please sign in to comment.