Skip to content

Commit 063c06f

Browse files
committed
remove unnessary else
1 parent 354bb10 commit 063c06f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

typed/merge.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ func (w *mergingWalker) visitListItems(t *schema.List, lhs, rhs value.List) (err
203203
// Skip the LHS item because it has already appeared
204204
lI++
205205
continue
206-
} else if _, ok := observedRHS.Get(pe); !ok {
206+
}
207+
if _, ok := observedRHS.Get(pe); !ok {
207208
// Take the LHS item, without a matching RHS item to merge with
208209
lChild, _ := observedLHS.Get(pe)
209210
mergeOut, errs := w.mergeListItem(t, pe, lChild, nil)

0 commit comments

Comments
 (0)