Skip to content

Commit

Permalink
[CR] Flatten if/elses in catalog/mvcc/cataloger_merge_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Barak Amar <barak.amar@treeverse.io>
  • Loading branch information
arielshaqed and nopcoder authored Nov 25, 2020
1 parent 74527c9 commit b35b36e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions catalog/mvcc/cataloger_merge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,9 @@ func TestCataloger_Merge_FromParentConflicts(t *testing.T) {
}
if res == nil {
t.Errorf("Merge returned nil, err %s", err)
} else {
if res.Reference != "" {
t.Errorf("Merge reference = %s, expected to be empty", res.Reference)
}
} else if res.Reference != "" {
t.Errorf("Merge reference = %s, expected to be empty", res.Reference)
}
}
}

Expand Down

0 comments on commit b35b36e

Please sign in to comment.