Skip to content

Commit 91c3d3c

Browse files
author
repo-visualizer
committed
update branchExists var name
1 parent 9c635f2 commit 91c3d3c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17928,14 +17928,14 @@ var main = async () => {
1792817928
}));
1792917929
const outputFile = core.getInput("output_file") || "./diagram.svg";
1793017930
await import_fs2.default.writeFileSync(outputFile, componentCodeString);
17931-
let branchExists = true;
17931+
let doesBranchExist = true;
1793217932
if (branch) {
1793317933
await (0, import_exec.exec)("git", ["fetch"]);
1793417934
try {
1793517935
await (0, import_exec.exec)("git", ["rev-parse", "--verify", branch]);
1793617936
await (0, import_exec.exec)("git", ["checkout", branch]);
1793717937
} catch {
17938-
branchExists = false;
17938+
doesBranchExist = false;
1793917939
await (0, import_exec.exec)("git", ["checkout", "-b", branch]);
1794017940
}
1794117941
}
@@ -17947,7 +17947,7 @@ var main = async () => {
1794717947
return;
1794817948
}
1794917949
await (0, import_exec.exec)("git", ["commit", "-m", commitMessage]);
17950-
if (branchExists) {
17950+
if (doesBranchExist) {
1795117951
await (0, import_exec.exec)("git", ["push"]);
1795217952
} else {
1795317953
await (0, import_exec.exec)("git", ["push", "--set-upstream", "origin", branch]);

src/index.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const main = async () => {
3838

3939
await fs.writeFileSync(outputFile, componentCodeString)
4040

41-
let branchExists = true
41+
let doesBranchExist = true
4242

4343
if (branch) {
4444
await exec('git', ['fetch'])
@@ -47,7 +47,7 @@ const main = async () => {
4747
await exec('git', ['rev-parse', '--verify', branch])
4848
await exec('git', ['checkout', branch])
4949
} catch {
50-
branchExists = false
50+
doesBranchExist = false
5151
await exec('git', ['checkout', '-b', branch])
5252
}
5353
}
@@ -62,7 +62,7 @@ const main = async () => {
6262

6363
await exec('git', ['commit', '-m', commitMessage])
6464

65-
if (branchExists) {
65+
if (doesBranchExist) {
6666
await exec('git', ['push'])
6767
} else {
6868
await exec('git', ['push', '--set-upstream', 'origin', branch])

0 commit comments

Comments
 (0)