Skip to content

Commit 389ecf6

Browse files
authored
fix: fix miss makezero bug (#6971)
Signed-off-by: alingse <alingse@foxmail.com>
1 parent d0d595c commit 389ecf6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

engine/api/migrate/migrate_organization.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func GetOrganizationUsersToMigrate(ctx context.Context, db *gorp.DbMap) ([]UserO
3333
return nil, err
3434
}
3535

36-
userIds := make([]string, len(allUsers))
36+
userIds := make([]string, 0, len(allUsers))
3737
mapUsers := make(map[string]*sdk.AuthentifiedUser)
3838
for i := range allUsers {
3939
u := &allUsers[i]

engine/hooks/trigger_workflow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func (s *Service) triggerWorkflows(ctx context.Context, hre *sdk.HookRepositoryE
8484
wh.Status = sdk.HookEventWorkflowStatusSkipped
8585
} else {
8686
// Query params to select the right workflow version to run
87-
mods := make([]cdsclient.RequestModifier, 2)
87+
mods := make([]cdsclient.RequestModifier, 0, 2)
8888
mods = append(mods, cdsclient.WithQueryParameter("ref", wh.Ref), cdsclient.WithQueryParameter("commit", wh.Commit))
8989

9090
runRequest := sdk.V2WorkflowRunHookRequest{

0 commit comments

Comments
 (0)