Skip to content

Commit

Permalink
Remove redundant if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
kfcampbell committed Dec 6, 2023
1 parent 6c3ffcf commit 3e17c8e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -735,13 +735,11 @@ async function main() {
}

if (inputs.path) {
if (inputs.path) {
core.debug(`Committing local changes matching "${inputs.path}"`);
await runShellCommand(`git add "${inputs.path}"`);
} else {
core.debug(`Committing all local changes`);
await runShellCommand("git add .");
}
}

await runShellCommand(
Expand Down
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,11 @@ async function main() {
}

if (inputs.path) {
if (inputs.path) {
core.debug(`Committing local changes matching "${inputs.path}"`);
await runShellCommand(`git add "${inputs.path}"`);
} else {
core.debug(`Committing all local changes`);
await runShellCommand("git add .");
}
}

await runShellCommand(
Expand Down

0 comments on commit 3e17c8e

Please sign in to comment.