Skip to content

Commit

Permalink
Refactor: Reuse variable "remoteRepoDir" (#25740)
Browse files Browse the repository at this point in the history
Reuse variable `remoteRepoDir` , same with `join(__dirname, 'remote-repo')`.
  • Loading branch information
HoikanChan committed Jan 10, 2023
1 parent 34464fb commit 1253462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/bench/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1253462

Please sign in to comment.