Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Safonkin committed Apr 19, 2021
1 parent 632ccbd commit d08d219
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/authutil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export function configAuthentication(
) {
const existingNuGetConfig: string = path.resolve(
processRoot,
existingFileLocation == '' ? getExistingNugetConfig(processRoot) : existingFileLocation
existingFileLocation == ''
? getExistingNugetConfig(processRoot)
: existingFileLocation
);

const tempNuGetConfig: string = path.resolve(
Expand All @@ -26,7 +28,9 @@ export function configAuthentication(
}

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) {
return configFileNames[0];
}
Expand Down

0 comments on commit d08d219

Please sign in to comment.