Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanaz committed Nov 25, 2020
1 parent 47d084d commit a23bfad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/lib/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const child_process = require('child_process');
* @param {string} x
* @param {string} y
*/
function getMergeBase(x, y = "HEAD") {
function getMergeBase(x, y = 'HEAD') {
return child_process
.execSync(`git merge-base ${x} ${y}`, { encoding: 'utf-8' })
.trim();
Expand All @@ -19,15 +19,15 @@ function getGitDiffStatuses(base, head) {
return {
value: fields[0],
headPath: fields[2] || fields[1],
basePath: fields[1]
basePath: fields[1],
};
}

return child_process
.execSync(`git diff --name-status ${base} ${head}`, { encoding: 'utf-8' })
.trim()
.split('\n')
.map(line => line.split("\t"))
.map(line => line.split('\t'))
.map(parseFields);
}

Expand Down

0 comments on commit a23bfad

Please sign in to comment.