Skip to content

Commit

Permalink
Fix git localGetCommits shadowed variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hmschreiner committed Nov 19, 2020
1 parent 22bfa2b commit 3858ce8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/platforms/git/localGetCommits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export const localGetCommits = (base: string, head: string) =>
const data = chunk.toString()
// remove trailing comma, and wrap into an array
const asJSONString = `[${data.substring(0, data.length - 1)}]`
const commits = JSON5.parse(asJSONString)
const realCommits = commits.map((c: any) => ({
const parsedCommits = JSON5.parse(asJSONString)
const realCommits = parsedCommits.map((c: any) => ({
...c,
parents: c.parents.split(" "),
}))
Expand Down

0 comments on commit 3858ce8

Please sign in to comment.