@@ -189,17 +189,7 @@ function isPAT(value: string) {
189189
190190type RegistryMapping = Partial < Record < BuiltInLanguage , string [ ] > > ;
191191
192- const LANGUAGE_TO_REGISTRY_TYPE : RegistryMapping = {
193- java : [ "maven_repository" ] ,
194- csharp : [ "nuget_feed" ] ,
195- javascript : [ "npm_registry" ] ,
196- python : [ "python_index" ] ,
197- ruby : [ "rubygems_server" ] ,
198- rust : [ "cargo_registry" ] ,
199- go : [ "goproxy_server" , "git_source" ] ,
200- } as const ;
201-
202- const NEW_LANGUAGE_TO_REGISTRY_TYPE : Required < RegistryMapping > = {
192+ const LANGUAGE_TO_REGISTRY_TYPE : Required < RegistryMapping > = {
203193 actions : [ ] ,
204194 cpp : [ ] ,
205195 java : [ "maven_repository" ] ,
@@ -251,13 +241,9 @@ export function getCredentials(
251241 registrySecrets : string | undefined ,
252242 registriesCredentials : string | undefined ,
253243 language : BuiltInLanguage | undefined ,
254- skipUnusedRegistries : boolean = false ,
255244) : Credential [ ] {
256- const registryMapping = skipUnusedRegistries
257- ? NEW_LANGUAGE_TO_REGISTRY_TYPE
258- : LANGUAGE_TO_REGISTRY_TYPE ;
259245 const registryTypeForLanguage = language
260- ? registryMapping [ language ]
246+ ? LANGUAGE_TO_REGISTRY_TYPE [ language ]
261247 : undefined ;
262248
263249 let credentialsStr : string ;
0 commit comments