Skip to content

Commit

Permalink
fix: fix fetchResources append
Browse files Browse the repository at this point in the history
  • Loading branch information
rahmatrhd committed Feb 26, 2024
1 parent 06245b7 commit d7ca830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/providers/gitlab/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func fetchResources[T *gitlab.Group | *gitlab.Project](
return nil, err
}

mappedRecords := make([]*domain.Resource, 0, len(records))
mappedRecords := make([]*domain.Resource, len(records))
for i, r := range records {
mappedRecords[i] = mapFunc(r)
}
Expand Down

0 comments on commit d7ca830

Please sign in to comment.