File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ func CreatePullRequest(ctx *context.APIContext) {
326326 return
327327 }
328328
329- labelIDs = make ([]int64 , 0 , len (form . Labels ))
329+ labelIDs = make ([]int64 , 0 , len (labels ))
330330 for _ , label := range labels {
331331 labelIDs = append (labelIDs , label .ID )
332332 }
@@ -338,9 +338,9 @@ func CreatePullRequest(ctx *context.APIContext) {
338338 return
339339 }
340340
341- orgLabelIDs := make ([]int64 , len (form . Labels ))
342- for i , orgLabel := range orgLabels {
343- orgLabelIDs [ i ] = orgLabel .ID
341+ orgLabelIDs := make ([]int64 , 0 , len (orgLabels ))
342+ for _ , orgLabel := range orgLabels {
343+ orgLabelIDs = append ( orgLabelIDs , orgLabel .ID )
344344 }
345345 labelIDs = append (labelIDs , orgLabelIDs ... )
346346 }
You can’t perform that action at this time.
0 commit comments