We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b47f58 commit bd48dfeCopy full SHA for bd48dfe
script/lib/utils.js
@@ -27,8 +27,7 @@ function getAbsoluteElectronExec () {
27
async function handleGitCall (args, gitDir) {
28
const details = await GitProcess.exec(args, gitDir)
29
if (details.exitCode === 0) {
30
- const output = details.stdout.replace(/^\*|\s+|\s+$/, '')
31
- return output.trim()
+ return details.stdout.replace(/^\*|\s+|\s+$/, '')
32
} else {
33
const error = GitProcess.parseError(details.stderr)
34
console.log(`${fail} couldn't parse git process call: `, error)
@@ -47,7 +46,7 @@ async function getCurrentBranch (gitDir) {
47
46
process.exit(1)
48
}
49
50
- return branch
+ return branch.trim()
51
52
53
module.exports = {
0 commit comments