Skip to content

Commit

Permalink
Fix empty merge result (#1270)
Browse files Browse the repository at this point in the history
  • Loading branch information
guy-har authored Jan 21, 2021
1 parent 8cc9966 commit c3037da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/api_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ func (c *Controller) MergeMergeIntoBranchHandler() refs.MergeIntoBranchHandler {

func newMergeResultFromCatalog(res *catalog.MergeResult) *models.MergeResult {
if res == nil {
return nil
return &models.MergeResult{}
}
var summary models.MergeResultSummary
for k, v := range res.Summary {
Expand Down

0 comments on commit c3037da

Please sign in to comment.