Skip to content

Commit 8c4fe5b

Browse files
committed
Minor code cleanup
1 parent af82354 commit 8c4fe5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils/yarn-paths.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { logger } from '@socketsecurity/registry/lib/logger'
22

3-
import constants from '../constants.mts'
3+
import { YARN } from '../constants.mts'
44
import { findBinPathDetailsSync } from './path-resolve.mts'
55

66
function exitWithBinPathError(binName: string): never {
@@ -20,7 +20,7 @@ export function getYarnBinPath(): string {
2020
if (_yarnBinPath === undefined) {
2121
_yarnBinPath = getYarnBinPathDetails().path
2222
if (!_yarnBinPath) {
23-
exitWithBinPathError(constants.YARN)
23+
exitWithBinPathError(YARN)
2424
}
2525
}
2626
return _yarnBinPath
@@ -31,7 +31,7 @@ export function getYarnBinPathDetails(): ReturnType<
3131
typeof findBinPathDetailsSync
3232
> {
3333
if (_yarnBinPathDetails === undefined) {
34-
_yarnBinPathDetails = findBinPathDetailsSync(constants.YARN)
34+
_yarnBinPathDetails = findBinPathDetailsSync(YARN)
3535
}
3636
return _yarnBinPathDetails
3737
}

0 commit comments

Comments
 (0)