Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Safonkin committed Apr 19, 2021
1 parent 07b4a80 commit a8c9701
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4840,7 +4840,7 @@ const github = __importStar(__webpack_require__(469));
const xmlbuilder = __importStar(__webpack_require__(312));
const xmlParser = __importStar(__webpack_require__(989));
function configAuthentication(feedUrl, existingFileLocation = '', processRoot = process.cwd()) {
const existingNuGetConfig = path.resolve(processRoot, existingFileLocation == ''
const existingNuGetConfig = path.resolve(processRoot, existingFileLocation === ''
? getExistingNugetConfig(processRoot)
: existingFileLocation);
const tempNuGetConfig = path.resolve(processRoot, '../', 'nuget.config');
Expand All @@ -4850,7 +4850,7 @@ exports.configAuthentication = configAuthentication;
function getExistingNugetConfig(processRoot) {
const configFileNames = fs
.readdirSync(processRoot)
.filter(filename => filename.toLowerCase() == 'nuget.config');
.filter(filename => filename.toLowerCase() === 'nuget.config');
if (configFileNames.length) {
return configFileNames[0];
}
Expand Down
4 changes: 2 additions & 2 deletions src/authutil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function configAuthentication(
) {
const existingNuGetConfig: string = path.resolve(
processRoot,
existingFileLocation == ''
existingFileLocation === ''
? getExistingNugetConfig(processRoot)
: existingFileLocation
);
Expand All @@ -30,7 +30,7 @@ export function configAuthentication(
function getExistingNugetConfig(processRoot: string) {
const configFileNames = fs
.readdirSync(processRoot)
.filter(filename => filename.toLowerCase() == 'nuget.config');
.filter(filename => filename.toLowerCase() === 'nuget.config');
if (configFileNames.length) {
return configFileNames[0];
}
Expand Down

0 comments on commit a8c9701

Please sign in to comment.