mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Refactor: Reuse variable "remoteRepoDir" (#25740)
Reuse variable `remoteRepoDir` , same with `join(__dirname, 'remote-repo')`.
This commit is contained in:
@@ -74,7 +74,7 @@ async function buildBenchmarkBundlesFromGitRepo(
|
||||
await cleanDir(remoteRepoDir);
|
||||
}
|
||||
// check if remote-repo directory already exists
|
||||
if (existsSync(join(__dirname, 'remote-repo'))) {
|
||||
if (existsSync(remoteRepoDir)) {
|
||||
repo = await Git.Repository.open(remoteRepoDir);
|
||||
// fetch all the latest remote changes
|
||||
await repo.fetchAll();
|
||||
|
||||
Reference in New Issue
Block a user