From 2a6832a7e3d34710d7307742604c2ade0ae3445c Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Mon, 30 May 2022 15:03:31 +0100 Subject: [PATCH] Fix formatting for hermes-utils.js --- scripts/hermes/hermes-utils.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/hermes/hermes-utils.js b/scripts/hermes/hermes-utils.js index 9311615b429..2bd84452749 100644 --- a/scripts/hermes/hermes-utils.js +++ b/scripts/hermes/hermes-utils.js @@ -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() {