Skip to content

Commit 184ee2d

Browse files
committed
CCM-11029: variable name
1 parent 6a9ef5d commit 184ee2d

File tree

1 file changed

+5
-5
lines changed
  • tests/contracts/producer/__tests__/utils

1 file changed

+5
-5
lines changed

tests/contracts/producer/__tests__/utils/utils.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,19 @@ function findPackageInNodeModules(root: string, packageName: string) {
4747

4848
const packageSegments = packageName.split('/');
4949

50-
let blah = modulesDir;
50+
let current = modulesDir;
5151

5252
while (packageSegments.length > 0) {
53-
const current = packageSegments.shift() as string;
53+
const currentSegment = packageSegments.shift() as string;
5454

55-
blah = path.join(blah, current);
55+
current = path.join(current, currentSegment);
5656

57-
if (!fs.existsSync(blah)) {
57+
if (!fs.existsSync(current)) {
5858
return null;
5959
}
6060
}
6161

62-
return blah;
62+
return current;
6363
}
6464

6565
function getPackageInstallDirectory(packageName: string): string {

0 commit comments

Comments
 (0)