Skip to content

Commit

Permalink
fix(instr-tedious): drop unnecesary check in getPackageVersion test util
Browse files Browse the repository at this point in the history
  • Loading branch information
david-luna committed May 10, 2024
1 parent 098b1af commit 4503526
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/opentelemetry-test-utils/src/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,7 @@ export const getPackageVersion = (packageName: string) => {

while (
!existsSync(packageJsonPath) &&
!packageJsonDir.endsWith('node_modules') &&
packageJsonDir !== '/'
!packageJsonDir.endsWith('node_modules')
) {
packageJsonDir = path.join(packageJsonDir, '..');
packageJsonPath = path.join(packageJsonDir, 'package.json');
Expand Down

0 comments on commit 4503526

Please sign in to comment.