File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -380,11 +380,13 @@ func GetStepVariableDto(variable *repository.PipelineStageStepVariable) (*pipeli
380
380
return variableDto , nil
381
381
}
382
382
383
- func GetTargetPlatformObjectFromString (targetPlatform string ) []pipelineConfigBean.TargetPlatform {
384
- targetPlatforms := GetTargetPlatformListFromString (targetPlatform )
383
+ func GetTargetPlatformObjectFromString (targetPlatformString string ) []pipelineConfigBean.TargetPlatform {
384
+ targetPlatforms := GetTargetPlatformListFromString (targetPlatformString )
385
385
var targetPlatformObject []pipelineConfigBean.TargetPlatform
386
386
for _ , targetPlatform := range targetPlatforms {
387
- targetPlatformObject = append (targetPlatformObject , pipelineConfigBean.TargetPlatform {Name : targetPlatform })
387
+ if len (targetPlatform ) == 0 {
388
+ targetPlatformObject = append (targetPlatformObject , pipelineConfigBean.TargetPlatform {Name : targetPlatform })
389
+ }
388
390
}
389
391
return targetPlatformObject
390
392
}
You can’t perform that action at this time.
0 commit comments