Skip to content

Commit

Permalink
Fix path variable fallback resolution (#9)
Browse files Browse the repository at this point in the history
Use or operator instead of nullish Coalescing operator
  • Loading branch information
MexicanSparker authored Aug 5, 2024
1 parent a976d28 commit fd927cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function run() {
const access = core.getInput('access');
const path = core.getInput('path');
const octokit = github.getOctokit(github_token);
const pathToPackage = `${path ?? '.'}/package.json`;
const pathToPackage = `${path || '.'}/package.json`;

const pkg = await fse.readJSON(pathToPackage);
if (!pkg) {
Expand Down

0 comments on commit fd927cf

Please sign in to comment.