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) {
326
326
return
327
327
}
328
328
329
- labelIDs = make ([]int64 , 0 , len (form . Labels ))
329
+ labelIDs = make ([]int64 , 0 , len (labels ))
330
330
for _ , label := range labels {
331
331
labelIDs = append (labelIDs , label .ID )
332
332
}
@@ -338,9 +338,9 @@ func CreatePullRequest(ctx *context.APIContext) {
338
338
return
339
339
}
340
340
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 )
344
344
}
345
345
labelIDs = append (labelIDs , orgLabelIDs ... )
346
346
}
You can’t perform that action at this time.
0 commit comments