mirror of
https://github.com/actions/setup-dotnet.git
synced 2024-11-23 03:51:07 +07:00
Prettier
This commit is contained in:
parent
632ccbdfb9
commit
d08d2193f9
@ -13,7 +13,9 @@ export function configAuthentication(
|
|||||||
) {
|
) {
|
||||||
const existingNuGetConfig: string = path.resolve(
|
const existingNuGetConfig: string = path.resolve(
|
||||||
processRoot,
|
processRoot,
|
||||||
existingFileLocation == '' ? getExistingNugetConfig(processRoot) : existingFileLocation
|
existingFileLocation == ''
|
||||||
|
? getExistingNugetConfig(processRoot)
|
||||||
|
: existingFileLocation
|
||||||
);
|
);
|
||||||
|
|
||||||
const tempNuGetConfig: string = path.resolve(
|
const tempNuGetConfig: string = path.resolve(
|
||||||
@ -26,7 +28,9 @@ export function configAuthentication(
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getExistingNugetConfig(processRoot: string) {
|
function getExistingNugetConfig(processRoot: string) {
|
||||||
const configFileNames = fs.readdirSync(processRoot).filter(filename => filename.toLowerCase() == 'nuget.config')
|
const configFileNames = fs
|
||||||
|
.readdirSync(processRoot)
|
||||||
|
.filter(filename => filename.toLowerCase() == 'nuget.config');
|
||||||
if (configFileNames.length) {
|
if (configFileNames.length) {
|
||||||
return configFileNames[0];
|
return configFileNames[0];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user