File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -932,15 +932,13 @@ func newWorkflowRegistrySyncerV2(
932932 }
933933
934934 addSources := capCfg .WorkflowRegistry ().AdditionalSources ()
935- addSourceConfigs := make ([]syncerV2.AdditionalSourceConfig , 0 , len (addSources ))
936- if len (addSources ) > 0 {
937- for _ , src := range addSources {
938- addSourceConfigs = append (addSourceConfigs , syncerV2.AdditionalSourceConfig {
939- URL : src .GetURL (),
940- Name : src .GetName (),
941- TLSEnabled : src .GetTLSEnabled (),
942- JWTGenerator : opts .JWTGenerator ,
943- })
935+ addSourceConfigs := make ([]syncerV2.AdditionalSourceConfig , len (addSources ))
936+ for i , src := range addSources {
937+ addSourceConfigs [i ] = syncerV2.AdditionalSourceConfig {
938+ URL : src .GetURL (),
939+ Name : src .GetName (),
940+ TLSEnabled : src .GetTLSEnabled (),
941+ JWTGenerator : opts .JWTGenerator ,
944942 }
945943 }
946944
You can’t perform that action at this time.
0 commit comments