Skip to content

Commit 94aa5f2

Browse files
committed
clean: refactoring
1 parent 8d5e653 commit 94aa5f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/inserter/js_inserter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func (j *JSInserter) CreateItem(ctx context.Context, path []string, items []Docu
8484
continue
8585
}
8686
for collectionName, subItems := range parentItem.SubCollections {
87-
err := j.CreateItem(ctx, append(path, j.ci.refIDs[parentItem.Ref], string(collectionName)), subItems, nowIndexes)
87+
err = j.CreateItem(ctx, append(path, j.ci.refIDs[parentItem.Ref], string(collectionName)), subItems, nowIndexes)
8888
if err != nil {
8989
return xerrors.Errorf("failed to create item in array: %w", err)
9090
}

0 commit comments

Comments
 (0)