Fix formatting for hermes-utils.js

This commit is contained in:
Nicola Corti
2022-05-30 15:03:31 +01:00
parent 659b693fcd
commit 2a6832a7e3
+10 -3
View File
@@ -159,9 +159,16 @@ function copyPodSpec() {
}
function isOnAReleaseBranch() {
let currentBranch = execSync(`git rev-parse --abbrev-ref HEAD`).toString().trim();
let currentRemote = execSync(`git config --get remote.origin.url`).toString().trim();
return currentBranch.endsWith('-stable') && currentRemote.endsWith('facebook/react-native.git');
let currentBranch = execSync('git rev-parse --abbrev-ref HEAD')
.toString()
.trim();
let currentRemote = execSync('git config --get remote.origin.url')
.toString()
.trim();
return (
currentBranch.endsWith('-stable') &&
currentRemote.endsWith('facebook/react-native.git')
);
}
function shouldBuildHermesFromSource() {