Skip to content

Commit 3bb2487

Browse files
committed
Fix lint error
1 parent 5bad4ed commit 3bb2487

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pkg/inserter/js_inserter.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ func (j *JSInserter) Execute(ctx context.Context, cn, path string) error {
6969
return nil
7070
}
7171

72+
//nolint:dupl
7273
func (j *JSInserter) CreateItem(ctx context.Context, path []string, items []ModelItem, collectionIndexes []int) error {
7374
for idx, parentItem := range items {
7475
nowIndexes := append(collectionIndexes, idx)

pkg/inserter/json_inserter.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ func (j *JSONInserter) Execute(ctx context.Context, cn, path string) error {
4545
return nil
4646
}
4747

48+
//nolint:dupl
4849
func (j *JSONInserter) CreateItem(ctx context.Context, path []string, items []ModelItem, collectionIndexes []int) error {
4950
for idx, parentItem := range items {
5051
nowIndexes := append(collectionIndexes, idx)

0 commit comments

Comments
 (0)