File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
backend/plugins/bitbucket_server/tasks Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,8 @@ var CollectApiPullRequestsMeta = plugin.SubTaskMeta{
3939
4040func CollectApiPullRequests (taskCtx plugin.SubTaskContext ) errors.Error {
4141 rawDataSubTaskArgs , data := CreateRawDataSubTaskArgs (taskCtx , RAW_PULL_REQUEST_TABLE )
42- collectorWithState , err := helper .NewStatefulApiCollector (* rawDataSubTaskArgs )
43- if err != nil {
44- return err
45- }
4642
47- err = collectorWithState . InitCollector (helper.ApiCollectorArgs {
43+ collector , err := helper . NewApiCollector (helper.ApiCollectorArgs {
4844 RawDataSubTaskArgs : * rawDataSubTaskArgs ,
4945 ApiClient : data .ApiClient ,
5046 PageSize : 100 ,
@@ -57,5 +53,5 @@ func CollectApiPullRequests(taskCtx plugin.SubTaskContext) errors.Error {
5753 return err
5854 }
5955
60- return collectorWithState .Execute ()
56+ return collector .Execute ()
6157}
You can’t perform that action at this time.
0 commit comments