Skip to content

Commit

Permalink
tidying: shorten variable name (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
tranhl authored Dec 2, 2024
1 parent 8a1ec34 commit 088d4e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43064,8 +43064,8 @@ async function main({
});
});
openPullRequests.forEach((openPullRequest) => {
const hasExistingBasePullRequest = repoGraph.hasNode(openPullRequest.base.ref);
if (hasExistingBasePullRequest) {
const hasExistingBase = repoGraph.hasNode(openPullRequest.base.ref);
if (hasExistingBase) {
repoGraph.mergeDirectedEdge(openPullRequest.base.ref, openPullRequest.head.ref);
return;
}
Expand Down Expand Up @@ -43112,7 +43112,7 @@ async function main({
stackGraph2.dropNode(ref);
}
});
return import_graphology.DirectedGraph.from(stackGraph2.toJSON());
return stackGraph2;
};
const getOutput = (graph) => {
const lines = [];
Expand Down
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export async function main({
})

openPullRequests.forEach((openPullRequest) => {
const hasExistingBasePullRequest = repoGraph.hasNode(openPullRequest.base.ref)
if (hasExistingBasePullRequest) {
const hasExistingBase = repoGraph.hasNode(openPullRequest.base.ref)
if (hasExistingBase) {
repoGraph.mergeDirectedEdge(openPullRequest.base.ref, openPullRequest.head.ref)

return
Expand Down Expand Up @@ -98,7 +98,7 @@ export async function main({
}
})

return DirectedGraph.from(stackGraph.toJSON())
return stackGraph
}

const getOutput = (graph: DirectedGraph<StackNodeAttributes>) => {
Expand Down

0 comments on commit 088d4e0

Please sign in to comment.